getApprovalForTransaction
When dealing with transactions that involve ERC20 tokens (Airdropping ERC20, buy NFTs with ERC20, etc.) you often have to do a pre-check to see if the targeted contract has the sufficient allowance to "take" the ERC20 tokens from the caller's wallet.
This extension is a handy method that checks for the allowance and requests to approve for more if current allowance is insufficient
Example
Parameters
Returns
a PreparedTransaction