If I have done a transaction with a smart contract manually with metamask, how can I repeat that progress with a script written in web3.js/ethers.js so I can automate it?
If I am not wrong, I need to get the transaction details from the log? Can I do this with etherscan/bscscan?
Take this bsc transactions as an example.