useMintToken
Hook for minting new tokens in an ERC20 smart contract.
Available to use on contracts that implement the ERC20Mintable interface, such as the Token contract.
The wallet address that initiates this transaction must have minting permissions on the contract.
A mutation object to mint new tokens to the connected wallet
options
The mutation function takes an object as an argument with the following properties:
amount
The quantity of tokens to mint. Can be a string
or number
.
to
The wallet address to mint the new tokens to.
To use the connected wallet address, use the useAddress
hook.