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..', })
{ 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