📌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
Requires an amount of tokens to be minted
privateKey
string
The private key of the account to sign the transaction
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