useTransferToken
Hook for transferring tokens on an ERC20 contract.
Available to use on contracts that implement the ERC20 interface, such as the Token contract.
The wallet address that initiates this transaction must have a balance of tokens greater than or equal to the amount being transferred.
Example
Parameters
Returns
A mutation object to transfer tokens
options
The mutation function takes an object as an argument with the following properties:
to
The wallet address to transfer tokens to.
amount
The quantity of tokens to transfer. Can be a string
or number
.