UPDATED CODE!!! USE THIS GITHUB REPO TO SEE THE NEW CHANGE TO THE SWAP METHOD!!!
    https://github.com/BlockchainWithLeif/PancakeswapBot

    Thanks so much for watching this video! I would really appreciate it if you took time to hit that like button so this video can be pushed out to other Blockchain Developers looking to master their skills!

    Get up to $250 worth of free BTC!
    https://blockfi.mxuy67.net/CodingWithLeif

    PLEASE DONT FALL FOR ANY SCAMS IN THE COMMENT SECTION!!! NEVER CLICK ON LINKS PROMISING UNREALISITC RETURNS!

    How I learned how to do this:
    https://docs.uniswap.org/protocol/V2/introduction

    Make sure to leave questions, concerns, issues in the comment section, I READ ALL THE COMMENTS!

    If you want to learn about Solidity, check out my 7 part tutorial for FREE here on youtube:

    If you want to contact me for any reason, DM me on Twitter! my handle is
    CodingWithLeif on Twitter.

    Chapters:
    0:00 – Introduction
    1:01 – Setting up our Environment
    2:20 – Starting our Bot
    5:13 – Creating our Contract References
    7:27 – Creating a Listener for Swaps
    9:24 – Testing our Listener
    10:20 – Adding Swapping Abilities
    13:43 – Conclusion

    Video Tags:
    how to build a cryptocurrency bot, pancake swap trading bot, uniswap trading bot, code your own crypto bot, ethereum trading bot, javascript crypto trading bot, cryptocurrency, trading bot, custom trading bot, pancakeswap trading tutorial, uniswap trading bot, quickswap trading bot, blockchain developement 2021, ethers.js tutorial 2021, how to build a crypto trading bot 2021, easy crypto trading bot, free crypto trading bot, how to create a custom cryptocurrency trading bot, custom cryptocurrency trader

    38 Comments

    1. Hi Leif, I can't get your GitHub code to work. I have enough funds, but always got the same error: (node:18884) UnhandledPromiseRejectionWarning: Error: insufficient funds for intrinsic transaction cost (error={"code":-32000,"response":"{"jsonrpc":"2.0","id":10,"error":{"code":-32000,"message":"insufficient funds for gas * price +

      value"}}"}

    2. Hi Leif, I appreciate your work. But, when I run, I alwasy receive this error[(node:11920) UnhandledPromiseRejectionWarning: Error: could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.5.0)]. Tried with both http & wss. Still same. Any suggestion?

    3. Thank you for the information! If I may, just to confirm, would it be possible to automate a busd to other tokens swap using these methods? It'd be just searching for that specific pair contract and using it instead, correct? Thanks in advance!

    4. Awesome content mate, I have been trying to do the similar things on Solana with Raydium but I can't seem to find any smart contracts(router/factory contracts). If you are up for a challenge it would be awesome if you can make a video on it or even just explaining it in the comment here would be more than enough for me. Cheers.

    5. Thanks Leif! Hey I implemented this, but with V3 when you have multi hop swaps it seems that I only get the first address. Do you know how to get the array {tokenAddress – fee – tokenAddress – fee – tokenAddress…..} of the addresses that the multi hop followed?

    6. Great tutorial man! Thanks 🙂
      When i run the script,i get an error: Error: nonce has already been user …
      Anyone has expereinced that? Thanks

    7. kindly do another video showing the format of the secret key and some testing on buying and selling. Thanks for the great content. subscribed)

    8. Great job, congrats! I am attempting to write a sniping code and soon realized that to be effective one needs access to a private full node. Do you run your own? Cheers

    Leave A Reply
    Share via