Replies: 6 comments
-
I do not know if anything in ethers that would produce that error. What makes you think this is related to ethers? |
Beta Was this translation helpful? Give feedback.
-
this is the code that i have const ethers = require('ethers'); const addresses = { //First address of this mnemonic must have enough BNB to pay for tx fess const provider = new ethers.providers.WebSocketProvider("wss://apis.ankr.com/wss/c644dfdf2fe04caea648ae6b25d0de6f/7a13ad11bc7b184b318e80cf2c6a1e32/binance/full/main"); const wbnb = new ethers.Contract( const init = async () => { factory.on('PairCreated', async (token0, token1, pairAddress) => { //The quote currency needs to be WBNB (we will pay with WBNB) if(token1 == addresses.WBNB) { //The quote currency is not WBNB //We buy for 0.1 BNB of the new token init(); |
Beta Was this translation helpful? Give feedback.
-
thats what i get |
Beta Was this translation helpful? Give feedback.
-
Could it be a configuration error in your editor? I don’t use an IDE myself, but that seems like something is failing before it gets a chance to import the library. |
Beta Was this translation helpful? Give feedback.
-
now as i go through and overcome that error, this is what i get from the terminal [Running] node "c:\Users\anandachiesafatahill\Desktop\New Folder With Items\tempCodeRunnerFile.js" ReferenceError: replace is not defined [Done] exited with code=1 in 0.187 seconds [Running] node "c:\Users\anandachiesafatahill\Desktop\New Folder With Items\bot.js" Error: invalid BigNumber string (argument="value", value="replace by amount covering several trades", code=INVALID_ARGUMENT, version=bignumber/5.0.15) [Done] exited with code=1 in 0.994 seconds [Running] node "c:\Users\anandachiesafatahill\Desktop\New Folder With Items\bot.js" Error: invalid BigNumber string (argument="value", value="replace by amount covering several trades", code=INVALID_ARGUMENT, version=bignumber/5.0.15) [Done] exited with code=1 in 0.835 seconds [Running] node "c:\Users\anandachiesafatahill\Desktop\New Folder With Items\bot.js" Error: invalid BigNumber string (argument="value", value="replace by amount covering several trades", code=INVALID_ARGUMENT, version=bignumber/5.0.15) [Done] exited with code=1 in 0.889 seconds [Running] node "c:\Users\anandachiesafatahill\Desktop\New Folder With Items\bot.js" Error: invalid BigNumber string (argument="value", value="replace by amount covering several trades", code=INVALID_ARGUMENT, version=bignumber/5.0.15) [Done] exited with code=1 in 0.996 seconds |
Beta Was this translation helpful? Give feedback.
-
You are passing in the string You should check out the documentation for the bot, but this isn’t an issue with ethers. I’ll move this from issues to discussions. :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
as i was trying to install this bot, i get this message * crbug/1173575, non-JS module files deprecated. * can anyone help me and guide to install thiss ? thank you so much!
Beta Was this translation helpful? Give feedback.
All reactions