Update the metadata for a channel
import { uplinkClient } from './config' const { event, uri, channelName } = await uplinkClient.updateChannelMetadata({ channelAddress: '0x1234567890123456789012345678901234567890', uri: 'new channel uri', name: 'new channel name' })
{ uri: string, channelName: string, event: Log }
string
const { event } = await uplinkClient.updateChannelMetadata({ channelAddress: '0x1234567890123456789012345678901234567890', ... })
const { event } = await uplinkClient.updateChannelMetadata({ uri: 'new channel uri', ... })
const { event } = await uplinkClient.updateChannelMetadata({ name: 'new channel name', ... })
TransactionOverrides
type TransactionOverrides = { accessList?: AccessList gas?: bigint maxFeePerGas?: bigint maxPriorityFeePerGas?: bigint nonce?: number value?: bigint }
const { event } = await uplinkClient.updateChannelMetadata({ ... transactionOverrides: { gas: 1000000n } })
const { address, data } = await uplinkClient.calldata.updateChannelMetadata({...})
{ address: string, // address of the target contract data: string // calldata for the transaction }
const gas = await uplinkClient.estimateGas.updateChannelMetadata({...})
bigint // gas estimate in wei