Hook for claiming a ERC20 tokens from a smart contract.
A mutation object to tokens to the wallet specified in the params
The mutation function takes an object as an argument with the following properties:
Likely, you will want to claim the token to the currently connected wallet address.
You can use the
useAddress hook to get this value.
The amount of tokens to be claimed.
Boolean value to check whether the current wallet has enough allowance to pay for claiming the tokens before attempting to claim the tokens.