Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Mint a batch of channel tokens with ETH.
import { uplinkClient } from './config' const { event } = await uplinkClient.mintTokenBatchWithETH({ channelAddress: '0x123...', to: '0x123...', tokenIds: [1n, 2n, 3n], amounts: [1n, 1n, 1n], mintReferral: '0x123...', data: '0x00..', })
import { TransmissionsClient } from '@tx-kit/sdk' import { CreatePublicClient, CreateWalletClient } from 'viem' import { base } from 'viem/chains' const publicClient = createPublicClient({ chain: base, transport: http() }) const walletClient = createWalletClient({ account, // from local private key or browser wallet chain: base, transport: http() }) export const { uplinkClient } = new TransmissionsClient({ publicClient, walletClient, chain: base })
{ event: Log }
string
const { event } = await uplinkClient.mintTokenBatchWithETH({ channelAddress: '0x1234567890123456789012345678901234567890', ... })
const { event } = await uplinkClient.mintTokenBatchWithETH ({ to: '0x1234567890123456789012345678901234567890', ... })
bigint[]
const { event } = await uplinkClient.mintTokenBatchWithETH({ tokenIds: [1n, 2n, 3n], ... })
const { event } = await uplinkClient.mintTokenBatchWithETH({ amounts: [1n, 1n, 1n], ... })
const { event } = await uplinkClient.mintTokenBatchWithETH({ mintReferral: '0x1234567890123456789012345678901234567890', ... })
const { event } = await uplinkClient.mintTokenBatchWithETH ({ data: '0x00...', ... })
TransactionOverrides
type TransactionOverrides = { accessList?: AccessList gas?: bigint maxFeePerGas?: bigint maxPriorityFeePerGas?: bigint nonce?: number value?: bigint }
const { event } = await uplinkClient.mintTokenBatchWithETH({ ... transactionOverrides: { value: parseEther('0.000666') } })
const { address, data } = await uplinkClient.calldata.mintTokenBatchWithETH({...})
{ address: string, // address of the target contract data: string // calldata for the transaction }
const gas = await uplinkClient.estimateGas.mintTokenBatchWithETH({...})
bigint // gas estimate in wei