📌mint
Description
The mint
function is an asynchronous function that mints a specified amount of ERC20 tokens to the specified 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 (ERC20) that is already deployed
receiver
string
Expects the receiving account address for the mint of the token (ERC20)
amount
string
Expects the receiving account address for the mint of the token (ERC20)
privateKey
string
Expects the receiving account address for the mint of the token (ERC20)
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 mint request using the NEST® SDK:
Response
Use Cases
Bulk token distribution: The primary use case for the
mint
function is to distribute multiple ERC20 tokens to a specified receiver address in bulk.Automated token distribution: The
mint
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