Mint a batch of channel tokens with ERC20.
minterLogic[]
import { uplinkClient } from './config' const { event } = await uplinkClient.mintTokenBatchWithERC20({ channelAddress: '0x123...', to: '0x123...', tokenIds: [1n, 2n, 3n], amounts: [1n, 1n, 1n], mintReferral: '0x123...', data: '0x00..', })
{ event: Log }
string
const { event } = await uplinkClient.mintTokenBatchWithERC20({ channelAddress: '0x1234567890123456789012345678901234567890', ... })
const { event } = await uplinkClient.mintTokenBatchWithERC20 ({ to: '0x1234567890123456789012345678901234567890', ... })
bigint[]
const { event } = await uplinkClient.mintTokenBatchWithERC20({ tokenIds: [1n, 2n, 3n], ... })
const { event } = await uplinkClient.mintTokenBatchWithERC20({ amounts: [1n, 1n, 1n], ... })
const { event } = await uplinkClient.mintTokenBatchWithERC20({ mintReferral: '0x1234567890123456789012345678901234567890', ... })
const { event } = await uplinkClient.mintTokenBatchWithERC20 ({ data: '0x00...', ... })
TransactionOverrides
type TransactionOverrides = { accessList?: AccessList gas?: bigint maxFeePerGas?: bigint maxPriorityFeePerGas?: bigint nonce?: number value?: bigint }
const { event } = await uplinkClient.mintTokenBatchWithERC20({ ... transactionOverrides: { gas: 1000000nn } })
const { address, data } = await uplinkClient.calldata.mintTokenBatchWithERC20({...})
{ address: string, // address of the target contract data: string // calldata for the transaction }
const gas = await uplinkClient.estimateGas.mintTokenBatchWithERC20({...})
bigint // gas estimate in wei