Hard to figure out out you are using Visual studio for the node command at the end or Java server
@JamesBachini10 ай бұрын
The console? If so it's just windows power shell
@rolandonwa23695 ай бұрын
Please can you make a video on layer2 network on dex exchange, the bot will buy token on exchange A and sell it on exchange B
@bigpvn6 ай бұрын
it can be use for volume boosting? same logic?
@JamesBachini6 ай бұрын
Yes, just trade a frequent narrow range to add volume
@m.glorious5520 Жыл бұрын
Thank you for the tutorials
@mickael6838 Жыл бұрын
thanks for the tutorial !!
@CrazyWorldTTV3 ай бұрын
For example i have the contract and still is not launched on market, how can i make the script to wait when its online auto buy streight
@JamesBachini3 ай бұрын
To get a tx in the same block you would have to monitor the mempool and then bid as soon as liquidity is added.
@CrazyWorldTTV3 ай бұрын
@@JamesBachini yes i own the contract how can i do can ypu help me i want to be the first buyer on my contract not the bots
@JamesBachini3 ай бұрын
@@CrazyWorldTTV You could potentially add a mint function in the token contract constructor. Or you could bundle a transaction for adding liquidity and doing a buy in a single transaction
@armagelypse6 ай бұрын
Hey there - do you know if there is a bot out there or some kind of scipt to execute regular swap orders on Uniswap connected with Metamask?
@JamesBachini6 ай бұрын
I haven't seen anything that can automate metamask and don't think you'd want to. Bots generally run using a hot wallet i.e. keys stored on the server
@panchopacheco124711 ай бұрын
I'm attempting to modify your code for more specific market conditions and it rather quickly became spaghetti. It's beginning to look like converting it to object oriented code may be worth the work involved. Would you please do a video of this Trading bot in object oriented code? Or could you direct me to a simple one? I haven't seen any on KZbin. Thanks
@JamesBachini11 ай бұрын
Sure I'll just refactor it and get back to you
@geoffreysari62395 ай бұрын
@@JamesBachini Thanks for sharing. Where you able to refactor your code? Has it been updated on your github repository.
@JamesBachini5 ай бұрын
@@geoffreysari6239it's just a simple script to demonstrate the tutorial. You could probably pop it into chatgpt and ask it to refactor it to more object orientated or whatever direction you want to take it. It's not under active development or designed for production
@zenginmo5324 Жыл бұрын
❤ i Learn to much from you
@panchopacheco1247 Жыл бұрын
Thanks for another Informative and practical video. How would you modify the code to swap UNI for WETH? The ratio would be a fraction of one; 'BigInt(0.029)' produces an error.
@JamesBachini Жыл бұрын
Convert to Wei first perhaps? Uniswap takes inputs in the lowest denomination and Eth has 18 decimals. I think I used ethers in that script which has functions like parseEther and formatEther for doing conversions
@panchopacheco1247 Жыл бұрын
That worked. Thanks
@cultesmoments Жыл бұрын
Ouah, very good video, you use WETH and UNI i see but it is possible to use GOETH and WETH? And in your code warning wee see your apikey? And use 0.001 ETH for trade is not too low? I will try this soon, very thank you, you are a Boss!
@JamesBachini Жыл бұрын
Like Goerli Eth? So you would just use the weth contract on Goerli for this. You can use whatever amount you wish for the trade depending on how much you want to exchange on each trade
@cultesmoments Жыл бұрын
@@JamesBachini thank you for reply. If i use 6 Goerli ETH it is ok?
@JamesBachini Жыл бұрын
@@cultesmoments yes more than enough
@akumakazenoryu5 ай бұрын
no matter what i do it says that my private key is invalid
@JamesBachini5 ай бұрын
Did you edit the .env file? Private key is different to the address and mnemonic. From the error it sounds like it's something to do with that.
@ywueeee Жыл бұрын
can you make a video on solana memecoin and NFT collection?
@JamesBachini Жыл бұрын
I haven't worked with Solana for a year or two to be honest. Main focus is Solidity and EVM chains
@ywueeee Жыл бұрын
@@JamesBachini good time to get back I guess because after this people will be moving there i guess
@Stateofdinosaurs Жыл бұрын
There is the possibility of creating a bot that sells a percentage of the token daily and saves the sale balance to repurchase the token after 30 days and burns it right after the repurchase.
@JamesBachini Жыл бұрын
Yes you would just need to add that logic to the script and send the balance to the 0x0 burn address
@unimposings Жыл бұрын
i am trying like couple of hours to let the beast run on L2 polygon, if am not getting the error: Error: could not coalesce error (error={ "code": -32000, "message": "transaction underpriced" }, code=UNKNOWN_ERROR, version=6.3.0) , then i get node_modules/ethers/lib.commonjs/utils/errors.js:121 error = new Error(message); ^ Error: missing revert data (action="call", data=null, reason=null, transaction={ "data": , i tried already on 2 different systems. so it would be great if you can make second part video for main net, or l2, and a bit more in debt, which version you are using, did you install ethers before, or was it installed what is your npm version etc. but 100% thanks for sharing, i mean on test net it is running smoothly..
@JamesBachini Жыл бұрын
The same code should work on L2 as it's EVM compatible. Is there definitely a version of Uniswap v3 deployed though? You'll need to change the weth address to whichever version of wrapped MATIC they are using and also update the token address. Check the router and quoter address in a block explorer as well to make sure the contracts exist on the L2. Latest version of node and npm is fine. If it's working on testnet that's not the issue. Double check that the contract addresses are formatted correctly in regards to checksum. If they are copied from a URL it can convert them to lowercase and cause issues.
@muhammadaqeel2158 Жыл бұрын
did your code working fine now on main net?
@muhammadaqeel2158 Жыл бұрын
I am facing same issue
@robertfisher3507 Жыл бұрын
keep getting errors, does not work.
@JamesBachini Жыл бұрын
Is there any error code or something to go on? Got funds in the wallet to pay gas fees? Check token addresses aren't all lowercase as this breaks the checksum
@aitchetesami7194 Жыл бұрын
I've tried on mac's Terminal and got error... please guide JsonRpcProvider failed to startup; retry in 1s /Users/aitch/Downloads/Market-Maker-Bot-main/node_modules/ethers/lib.commonjs/utils/errors.js:121 error = new Error(message); ^ Error: server response 403 Forbidden (request={ }, response={ }, error=null, code=SERVER_ERROR, version=6.3.0) at makeError (/Users/aitch/Downloads/Market-Maker-Bot-main/node_modules/ethers/lib.commonjs/utils/errors.js:121:21) at assert (/Users/aitch/Downloads/Market-Maker-Bot-main/node_modules/ethers/lib.commonjs/utils/errors.js:138:15) at FetchResponse.assertOk (/Users/aitch/Downloads/Market-Maker-Bot-main/node_modules/ethers/lib.commonjs/utils/fetch.js:775:32) at JsonRpcProvider._send (/Users/aitch/Downloads/Market-Maker-Bot-main/node_modules/ethers/lib.commonjs/providers/provider-jsonrpc.js:772:18) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async /Users/aitch/Downloads/Market-Maker-Bot-main/node_modules/ethers/lib.commonjs/providers/provider-jsonrpc.js:239:40 { code: 'SERVER_ERROR', request: FetchRequest {}, response: FetchResponse {}, error: undefined } Node.js v18.16.0