I'm building a tool that requires listening to functions that are triggered by the developers of smart contracts. I'd like to know if on web3 or ethersjs there is a way to listen to a specific method on the smart contract being invoked. I was going to use the
contract.on but that seems to only work on contract events, and I need it to listen to contract functions.
Any help is appreciated, thanks!