React Hooks
useCreateFiniteChannel
Create a new finite channel
Usage
Returns
createFiniteChannel
Function to create a new finite channel. See createFiniteChannel args.
- type:
({ uri: string; name: string; defaultAdmin: string; managers: string[]; setupActions: SetupAction[]; transportLayer: InfiniteTransportLayer; transactionOverrides?: TransactionOverrides; }) => Promise<Log[] | undefined>
status
- type:
ContractExecutionStatus
the status of the transaction
channelAddress
- type:
Address
the address of the new channel
txHash
- type:
string
the transaction hash of the transaction
error
- type:
any
the revert message if the transaction fails