Documentation Index
Fetch the complete documentation index at: https://docs.transmissions.wtf/llms.txt
Use this file to discover all available pages before exploring further.
Usage
"use client";
import { useUpdateInfiniteChannelTransportLayer } from "@tx-kit/hooks";
const MyComponent = () => {
const {
updateInfiniteChannelTransportLayer,
status,
txHash,
error
} = useUpdateInfiniteChannelTransportLayer()
const onClick = () => {
updateInfiniteChannelTransportLayer({ ... })
}
return <button onClick={onClick}>Update Transport Layer</button>
}
Returns
updateInfiniteChannelTransportLayer
Function to update the infinite channel transport layer. See updateTransportLayer parameters.
- type:
({ channelAddress: string; saleDurationInSeconds: number; transactionOverrides?: TransactionOverrides; }) => Promise<Log[] | undefined>
status
- type:
ContractExecutionStatus
type ContractExecutionStatus =
| 'pendingApproval'
| 'txInProgress'
| 'complete'
| 'error'
the status of the transaction
txHash
the transaction hash of the transaction
error
the revert message if the transaction fails