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
hi, brother can you make pancakeswap bot for BSc token,
I will pay for it
must really I am serious
hi, brother can you make pancakeswap bot for BSc token,
I will pay for it
must really I am serious
hi, brother can you make pancakeswap bot for BSc token,
I will pay for it
must really I am serious
Thank you for the video
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"}}"}
reason: 'could not detect network',
code: 'NETWORK_ERROR',
event: 'noNetwork'
For what is this good?
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?
I did not find out about anything …
is there a way to buy you a bot that really works?
Will this work for bsc pancakeswap ?
Hey can you make a tutorial on understanding this tutorial? TIA
Why did you set the WBNBAmountOutMin that way? Does it correspond to setting a slippage equal to .1 WBNB?
Hey friend, what are the key process in building a bot
I will be trying this today!!
Hi Leif. can this be used to snipe tokens for project that is about to release? on pancake swap?
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!
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.
The Testnet ist useless if I can't get any WBNB to test it.
This is really awesome! Thank you!
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?
Great tutorial man! Thanks 🙂
When i run the script,i get an error: Error: nonce has already been user …
Anyone has expereinced that? Thanks
kindly do another video showing the format of the secret key and some testing on buying and selling. Thanks for the great content. subscribed)
Hi, there is anyway to make transactions without a provider?
is this a video to set up a bot for buying at the lunch of a DAO or a node ?
Great content, thank you
Hello, thank for this video, i have question, with this code is it possible to buy bnb with busd and buy busd with bnb?
If you ever want to team up Leif, let me know. js dev of 25 years and solidity coder
Why can't I use the default provider instead of a socket?
Really great stuff! Thank you Leif!
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
You are honest, I subbed.
Would this work with Spookyswap? Would the required changes be complex?
This is such a good tutorial, thanks heaps for taking the time to make this – liked and subscribed!
absolutely the strongest video i could find! Massive thanks!
great but you should zoom in more so we can actually see what you are doing/writing.
There is no api for historical data of dex like pancakeswap?
It helped me a lot. Thanks!