Create a Simple Nodejs script to track transactions on Ethereum blockchain

Job ID: 35155732

Budget: $10 – $30 USD

I want a simple script in which I input a token address and Target_Percent and run it the following must happen;
1) detects the first swap (swapExactETHForTokens or multicall or any other type of transaction which have impact on price) and prints the price of the token on the screen, lets call it Starting Price.
2) detects subsequent swaps and prints %gain ... reference point being our Starting price.
3) when %gain = Target_percent, it should print %gain achieved and stop tracking. end the loop.
Related categories: Node.js Ethereum Smart Contracts