React Hooks
useUpdateMetadata
Update the metadata for a channel
Usage
Returns
updateChannelMetadata
Function to update channel metadata. See updateChannelMetadata args.
- type:
({ channelAddress: string; uri: string; name: string; transactionOverrides?: TransactionOverrides; }) => Promise<Log[] | undefined>
status
- type:
ContractExecutionStatus
type ContractExecutionStatus =
| 'pendingApproval'
| 'txInProgress'
| 'complete'
| 'error'
the status of the transaction
uri
- type:
string
the new uri for the channel
name
- type:
string
the new name for the channel
txHash
- type:
string
the transaction hash of the transaction
error
- type:
any
the revert message if the transaction fails