π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 Volary SDK, you must have it installed.
You can install Volary SDK using either npm or yarn. Use the following commands to install Volary SDK:
npm install @nest25/evm-chains-lib
OR
yarn add @nest25/evm-chains-libRequest
Here is an example of how to make a deployContract request using the Volary SDK:
Response
Use Cases
Contract deployment: The primary use case for the
deployContractfunction is to deploy a new smart contract on a specified blockchain network, using the providederc11155Abianderc11155ByteCodeto 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