📌deployContract
Description
The deployContract
function deploys an ERC20 token contract on a specified blockchain network with the given name and symbol and returns the contract.
Parameters
Parameter | Type | Description |
---|---|---|
| string | Takes a parameter specifying the name of the blockchain network(For eg. bsc, polygon, eth, ava, gnosis, moonbeam) |
| string | The private key of the account to sign the transaction |
| string | The name of the ERC20 token to be deployed |
| string | The symbol of the ERC20 token to be deployed |
Response
| 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 deployContract
request using the NEST® SDK:
Response
Use Cases
Creating a new ERC20 token: The primary use case for the
deployContract
function is to create a new ERC20 token contract on a specified blockchain network, with the specified name and symbol.Custom token configuration: The
deployContract
function allows for custom configuration of the ERC20 token contract, such as the total supply and decimal places.
Last updated