πŸ“Œ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

blockchain

string

Takes a parameter specifying the name of the blockchain network(For eg. bsc, polygon, eth, ava, gnosis, moonbeam)

privateKey

string

The private key of the account to sign the transaction

name

string

The name of the ERC20 token to be deployed

symbol

string

The symbol of the ERC20 token to be deployed

Response

Promise<Object>

object

Returns the transaction receipt 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:

Request

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