Deploy Tron TRC-10/20 Smart Contract to Blockchain and Ledger
POST {{baseUrl}}/v3/offchain/tron/trc/deploy
10 credits per API call.
Deploy Tron TRC-10/20 Smart Contract. This is a helper method, which is combination of
Register new TRC-10/20 token in the ledger and Deploy blockchain TRC20 or Deploy blockchain TRC10.
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.
This operation needs the private key of the blockchain address. Every time the funds are transferred, the transaction must be signed with the corresponding private key.
No one should ever send it's own private keys to the internet because there is a strong possibility of stealing keys and losing funds. In this method, it is possible to enter privateKey
or signatureId. PrivateKey should be used only for quick development on testnet versions of blockchain when there is no risk of losing funds. In production,
Tatum KMS should be used for the highest security standards, and signatureId should be present in the request.
Alternatively, using the Tatum client library for supported languages.
Request Body
{"description"=>"My TRC Token", "supply"=>"10000000", "symbol"=>"MT", "decimals"=>6, "type"=>"TRC10", "basePair"=>"EUR", "address"=>"TVAEYCmc15awaDRAjUZ1kvcHwQQaoPw2CW", "mnemonic"=>"urge pulp usage sister evidence arrest palm math please chief egg abuse", "index"=>0, "url"=>"https://mytoken.com", "baseRate"=>1, "customer"=>{"externalId"=>"123654", "accountingCurrency"=>"USD", "customerCountry"=>"US", "providerCountry"=>"US"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"accountId":"5e68c66581f2ee32bc354087","txId":"c83f8818db43d9ba4accfe454aa44fc33123d47a4f89d47b314d6748eb0e9bc9"}