Deploy a KuCoin Community Chain (KCC) ERC-20-equivalent smart contract to the blockchain and a virtual account

/v3/offchain/kcs/erc20/deploy

4 credits per API call

Deploy a KuCoin Community Chain (KCC) ERC-20-equivalent smart contract. This is a helper method, which is combination of Register new Kcs ERC20 token in the ledger and Deploy blockchain ERC20.

After deploying a contract to blockchain, the contract address will become available and must be stored within Tatum. Otherwise, it will not be possible to interact with it and starts automatic blockchain synchronization.

Signing a transaction
When deploying a KCC ERC-20-equivalent smart contract to the blockchain and a virtual account, you are charged a fee for the transaction, and you must sign the transaction with the private key of the blockchain address from which the fee will be deducted.

Providing the private key in the API is not a secure way of signing transactions, because the private key can be stolen or exposed. Your private keys should never leave your security perimeter. You should use the private keys only for testing a solution you are building on the testnet of a blockchain.

For signing transactions on the mainnet, we strongly recommend that you use the Tatum Key Management System (KMS) and provide the signature ID instead of the private key in the API. Alternatively, you can use the Tatum JavaScript client.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required
length between 1 and 30

The name of the token; used as an identifier within the Tatum platform and as a currency symbol on the blockchain

string
required
length ≤ 38

The supply of the token

string
required
length between 1 and 100

The description of the token; used as a description within the Tatum platform and as a currency name on the blockchain

string
required
length between 42 and 42

The blockchain address to be assigned to the virtual account as a deposit address

string
required
length between 1 and 500

The mnemonic to generate the private key for the blockchain address from which the fee for deploying the smart contract will be deducted; is used together with the derivation index of this address

integer
required
≤ 2147483647

The derivation index of the blockchain address from which the fee for deploying the smart contract will be deducted; is used together with the mnemonic to generate the private key for this address

string
enum
required

The base pair for the virtual currency that represents the token; used to calculate the value of a transaction

number
≥ 0
Defaults to 1

The exchange rate for the base pair; one unit of the created virtual currency equals 1 unit of basePair*baseRate

number
≥ 0

The nonce to be set to the transaction; if not present, the last known nonce will be used

customer
object

If a customer with the specified external ID does not exist, a new customer is created. If a customer with the specified external ID exists, it is updated with the provided information.

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json