🔗bulkMint
Description
The bulkMint
function is an asynchronous function that takes in a blockchain type, a contract address, a receiver address, a count, and a private key. It mints a specified number of ERC721 tokens to the given receiver address and returns the transaction receipt.
Parameters
blockchain
string
Takes a string parameter specifying the name of the blockchain network (For eg. bsc, polygon, eth, ava, gnosis, moonbeam)
contractAddress
string
Requires a contract address of the token
receiver
string
Expects the receiving account address for the transfer
count
string
Requires a count parameter indicating the number of tokens to transfer
privateKey
string
The private key of the account used for token transfer
Response
Promise<Object>
object
Returns the transaction receipt object.
Example Request and Response
Prerequisites
Before making requests with NEST® SDK, you must have it installed.
You can install NEST® SDK using either npm
or yarn
. Use the following commands to install NEST® SDK:
Request
Here is an example of how to make a bulkMint request using the NEST® SDK:
Response
Use Cases
Bulk token distribution: The primary use case for the
bulkMint
function is to distribute multiple ERC721 tokens to a specified receiver address in bulk.Automated token distribution: The
bulkMint
function can be integrated into automated workflows for token distribution, allowing developers to automatically distribute tokens as part of their continuous integration and deployment process.
Last updated