Post
Topic
Board Altcoin Discussion
Re: How do you automatically sell a token on uniswap as soon as a transaction arrive
by
VanDeinsberg12
on 15/08/2021, 23:25:31 UTC
Can I optimize this so that I sell the token/eth if only the transaction arrives without my participation ?

For example, someone sends me an eth and as soon as the transaction arrives, 1inch / uniswap immediately sell and exchange it for DAI at the current price?
a bot that combined by using uniswap API might be possible to make it happen but the problem is always on the approval. You need also to approve your transaction. This must be done manually.
1nch was an aggregator and it's also using uniswap API.
It might be possible but you must also build it from nothing to something. When your transaction arrive and you can also make this to be automated sent to the another address with possibility to send it on the DEX like uniswap to be exchanged into the another crypto

there is no tutorial on how to write it?
Approval is always better than staying awake for hours and constantly refreshing the page....

There's no tutorial about that but when you wanna try to dig github and i though that you may find one for you. The only problem is you must re-create the code again based on what kind of function that you wanna see that available in your bot. I remember there was a code that will let anyone to send their amount that got transferred into the wallet automatically to the another wallet.
This may become the code that will be combined with more function and UNI api to create a function that you are looking it right now. You must dig more dude.
It's not easy to create it as well.