📌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
Parameter | Type | Description |
---|---|---|
| string | Takes a string parameter specifying the name of the blockchain network (For eg. bsc, polygon, eth, ava, gnosis, moonbeam) |
| string | Requires a contract address of the token (ERC20) that is already deployed |
| string | Expects the receiving account address for the mint of the token (ERC20) |
| string | Requires an amount of tokens to be minted |
| string | The private key of the account to sign the transaction |
Response
Property | Type | Description |
---|---|---|
| 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