How can I swap with the pair BUSD instead of BNB? #2428
-
So, I have been building a bot, and so far, I have been successfully trading in BNB. For the swap, I have been doing:
Where The problem is, when i try to use BUSD address I am getting
So the first thing I tried was to use
Then i get
const nonce = await provider.getTransactionCount(myWalletAddress, 'latest');
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I think what is happening is that |
Beta Was this translation helpful? Give feedback.
I think what is happening is that
nonce
is getting the total number of transactions mined, but you are not getting the lastest pending transaction. This answer on StackOverflow may help you.