Usage
Returns
Parameters
channelAddress
The target channel address
const { event } = await uplinkClient.updateInfiniteChannelTransportLayer({
channelAddress: '0x1234567890123456789012345678901234567890',
...
})
saleDurationInSeconds
The sale duration for each new token in the collection.
const { event } = await uplinkClient.updateInfiniteChannelTransportLayer({
saleDurationInSeconds: 100,
...
})
transactionOverrides (optional)
- type:
TransactionOverrides
type TransactionOverrides = {
accessList?: AccessList
gas?: bigint
maxFeePerGas?: bigint
maxPriorityFeePerGas?: bigint
nonce?: number
value?: bigint
}
Overrides for the transaction
const { event } = await uplinkClient.updateInfiniteChannelTransportLayer({
...
transactionOverrides: {
gas: 1000000n
}
})
Calldata
generate calldata for the transaction
const { address, data } = await uplinkClient.calldata.updateInfiniteChannelTransportLayer({...})
Returns
{
address: string, // address of the target contract
data: string // calldata for the transaction
}
Gas Estimation
Estimate gas for the transaction
const gas = await uplinkClient.estimateGas.updateInfiniteChannelTransportLayer({...})
Returns
bigint // gas estimate in wei