πŸ“ŒdeployContract

Description

The deployContract function is used to deploy a Soulbound contract on a specified blockchain network.

Parameters

Name
Type
Description

blockchain

string

The blockchain network on which the contract will be deployed.

privateKey

string

The private key of the wallet used to deploy the contract.

name

string

The name of the Soulbound contract to be deployed.

symbol

string

The symbol of the Soulbound contract to be deployed.

Response

Name
Type
Description

code

number

A code indicating the success or failure of the function. 1 indicates success, while 0 indicates failure.

contract

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 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:

Request

Here is an example of how to make a deployContract request using the Volary 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