Modify JavaScript Function for Swap Detection on Multiple Blockchains
Budget: €750 – €1,500 EUR
I have a JavaScript function that currently works on the Base blockchain.
This function:
Parses transaction logs to check for swap events.
When a swap is detected, it displays:
hash
pairAddress
token0, token1
amount0, amount1
The function recognizes the swap topic (all major DEXs) and retrieves the required data based on that topic.
Required modification:
Adapt the function to work on additional blockchains:
Ethereum
BSC
Unichain
Optimism
Arbitrum
Solana
This function:
Parses transaction logs to check for swap events.
When a swap is detected, it displays:
hash
pairAddress
token0, token1
amount0, amount1
The function recognizes the swap topic (all major DEXs) and retrieves the required data based on that topic.
Required modification:
Adapt the function to work on additional blockchains:
Ethereum
BSC
Unichain
Optimism
Arbitrum
Solana