Update the transport layer for an infinite channel
"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> }
({ channelAddress: string; saleDurationInSeconds: number; transactionOverrides?: TransactionOverrides; }) => Promise<Log[] | undefined>
ContractExecutionStatus
type ContractExecutionStatus = | 'pendingApproval' | 'txInProgress' | 'complete' | 'error'
string
any