React Hooks
useCreateTokenIntent
Create a new token intent in a channel
Usage
Returns
createTokenIntent
Function to create a new token intent. See createToken args.
- type:
({ channelAddress: string; uri: string; maxSupply: bigint; )} => Promise<DeferredTokenIntentWithSignature | undefined>
status
- type:
ContractExecutionStatus
type ContractExecutionStatus =
| 'pendingApproval'
| 'txInProgress'
| 'complete'
| 'error'
the status of the signature request
signedIntent
- type:
DeferredTokenIntentWithSignature
the signed token intent. this is passed in the sponsoredToken
parameter during sponsorship.
error
- type:
any
the revert message if the transaction fails