Uplink client
mintTokenBatchWithERC20
Mint a batch of channel tokens with ERC20.
This function will revert under the following conditions:
- The channel does not allow ERC20 minting.
- The caller does not fulfill any of the channel
minterLogic[]
rules. - The caller does not have the required ERC20 balance to mint the tokens.
- The caller has not approved the channel to spend the required ERC20 balance.
Usage
Returns
Parameters
channelAddress
- type:
string
The target channel address
to
- type:
string
The recipient of the minted tokens
tokenIds
- type:
bigint[]
The token IDs to mint
amounts
- type:
bigint[]
The amounts of each token to mint
mintReferral (optional)
- type:
string
The referral address for the mint
data (optional)
- type:
string
Additional data for the mint
transactionOverrides (optional)
- type:
TransactionOverrides
Overrides for the transaction
Calldata
generate calldata for the transaction
Returns
Gas Estimation
Estimate gas for the transaction