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