With this simple JavaScript tool, you can decode the data sent to any smart contract on Ethereum, Binance Chain, Polygon; Avalanche, and all other Ethereum-compatible blockchains. Of course, you will need to have the ABI of the contract. Original JavaScript code developed by Miguel.
I have already made a video on what ABI is and how we can use abi-decoder library and web3 to trace token buy & swap orders. You can check it here.