📌deployContract
Description
The deployContract
function is used to deploy a Soulbound contract on a specified blockchain network.
Parameters
Name | Type | Description |
---|---|---|
| string | The blockchain network on which the contract will be deployed. |
| string | The private key of the wallet used to deploy the contract. |
| string | The name of the Soulbound contract to be deployed. |
| string | The symbol of the Soulbound contract to be deployed. |
Response
Name | Type | Description |
---|---|---|
| number | A code indicating the success or failure of the function. 1 indicates success, while 0 indicates failure. |
| object | An object containing information about the deployed contract, including the contract address and transaction hash. |
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
NFT marketplaces: They can use this function to deploy Soulbound contracts for their non-fungible tokens, which can restrict their transfer to only certain whitelisted addresses.
Gaming: Companies can use this function to deploy Soulbound contracts for in-game assets, which can restrict their transfer to only certain authorized players.
Last updated