Hook for transferring ERC20 tokens to multiple recipients in a single transaction (i.e. airdrop).
Available to use on contracts that implement the ERC20 interface.
The wallet that initiates this transaction must have sufficient balance to cover the total amount of tokens being transferred and must have transfer permissions on the contract, i.e. tokens are not soulbound.
Provide your token contract instance from the
useContract hook to the hook.
Then, provide an array of objects with the
amount properties to the function.
A Mutation object to transfer batch tokens
The mutation function takes an array of objects containing
to- The wallet address to transfer tokens to. Must be a
amount- The amount of tokens to transfer. Must be a