📌deployContract
Description
The deployContract
function deploys an ERC-1155 token contract on a specified blockchain network with a specified baseUri
and returns the deployed contract.
Parameters
blockchain
string
Specifies the name of the blockchain network on which the contract will be deployed (For eg. bsc, polygon, eth, ava, gnosis, moonbeam)
privateKey
string
The private key of the account used to deploy the contract
baseUri
string
The base URI for the contract metadata. This is used to retrieve additional information about the contract such as the name, symbol, and description.
Response
Promise<Object>
object
Returns the deployed contract 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
Contract deployment: The primary use case for the
deployContract
function is to deploy a new smart contract on a specified blockchain network, using the providederc11155Abi
anderc11155ByteCode
to generate the contract code.Token issuance: The deployed contract can be used to issue new tokens on the specified blockchain network, which can be used for various purposes such as rewards, governance, or utility tokens.
Last updated