Deploy Celo ERC-20 Smart Contract to Blockchain and Ledger
POST {{baseUrl}}/v3/offchain/celo/erc20/deploy
4 credits per API call.
Deploy Celo ERC-20 Smart Contract. This is a helper method, which is combination of
Register new Celo ERC-20 token in the ledger and Deploy blockchain ERC-20.
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
{"address"=>"0x687422eEA2cB73B5d3e242bA5456b782919AFc85", "basePair"=>"EUR", "description"=>"My ERC20 Token", "feeCurrency"=>"CELO", "index"=>0, "mnemonic"=>"urge pulp usage sister evidence arrest palm math please chief egg abuse", "supply"=>"10000000", "symbol"=>"MT", "baseRate"=>1, "customer"=>{"externalId"=>"123654", "accountingCurrency"=>"USD", "customerCountry"=>"US", "providerCountry"=>"US"}, "nonce"=>22515278.00413593}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"accountId":"5e68c66581f2ee32bc354087","txId":"c83f8818db43d9ba4accfe454aa44fc33123d47a4f89d47b314d6748eb0e9bc9"}