UNPKG

@tatumio/tron-connector

Version:

Tron Connector for Tatum API

1,426 lines 60.3 kB
openapi: 3.0.0 servers: - url: 'https://api-eu1.tatum.io' info: version: 1.1.1 title: Tatum Tron API tags: - description: | <p>Tron Blockchain enables access to most commonly used Tron methods. It's possible to generate TRON account, send TRX, TRC10 and TRC20 assets. It's also possible to generate custom TRC10 or TRC20 tokens using API.<br/> Tatum supports 2 chains: <ul><li>Mainnet - regular live chain <li>Shasta Testnet - test chain used for testing purposes. Coins on test chain have no value and can be obtained from Faucet, e.g. <a target="_blank" href="https://www.trongrid.io/shasta/">https://www.trongrid.io/shasta/</a></li></ul> name: Blockchain / Tron paths: /v3/tron/wallet: get: summary: Generate Tron wallet description: | <h4>1 credit per API call.</h4><br/><p>Tatum supports BIP44 HD wallets. It is very convenient and secure, since it can generate 2^31 addresses from 1 mnemonic phrase. Mnemonic phrase consists of 24 special words in defined order and can restore access to all generated addresses and private keys.<br/>Each address is identified by 3 main values:<ul><li>Private Key - your secret value, which should never be revealed</li><li>Public Key - public address to be published</li><li>Derivation index - index of generated address</li></ul></p><p>Tatum follows BIP44 specification and generates for Bitcoin wallet with derivation path m'/44'/195'/0'/0. More about BIP44 HD wallets can be found here - <a target="_blank" href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki">https://github.com/tron/bips/blob/master/bip-0044.mediawiki</a>. Generate BIP44 compatible Tron wallet.</p> operationId: GenerateTronwallet parameters: - description: "Mnemonic to use for generation of extended public and private keys." in: query name: mnemonic required: false schema: type: string maxLength: 500 responses: 200: content: application/json: schema: $ref: "#/components/schemas/TronWallet" description: OK 400: &API400 content: application/json: schema: $ref: "#/components/schemas/Error400" description: Bad Request. Validation failed for the given object in the HTTP Body or Request parameters. 401: &API401 content: application/json: schema: oneOf: - $ref: "#/components/schemas/Error401NotActive" - $ref: "#/components/schemas/Error401Invalid" description: Unauthorized. Not valid or inactive subscription key present in the HTTP Header. 403: description: Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions. content: application/json: schema: oneOf: - $ref: "#/components/schemas/Error403" 500: &API500 content: application/json: schema: $ref: "#/components/schemas/Error500" description: Internal server error. There was an error on the server during the processing of the request. security: - X-Api-Key: [ ] x-code-samples: tags: - Blockchain / Tron /v3/tron/address/{xpub}/{index}: get: description: | <h4>5 credit per API call.</h4><br/> <p>Generate Tron deposit address from Extended public key. Deposit address is generated for the specific index - each extended public key can generate up to 2^32 addresses starting from index 0 until 2^31.</p> operationId: TronGenerateAddress parameters: - description: "Extended public key of wallet." in: path name: xpub required: true example: 0244b3f40c6e570ae0032f6d7be87737a6c4e5314a4a1a82e22d0460a0d0cd794936c61f0c80dc74ace4cd04690d4eeb1aa6555883be006e1748306faa7ed3a26a schema: type: string - description: "Derivation index of desired address to be generated." in: path name: index required: true example: 1 schema: type: number minimum: 0 responses: 200: content: application/json: schema: type: object properties: address: type: string description: Tron address example: TFFBpkRNro4Pe4154ayGWx7C6Ev7BvQZ6t description: OK 400: <<: *API400 401: <<: *API401 403: description: Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions. content: application/json: schema: oneOf: - $ref: "#/components/schemas/Error403AccountAddressGeneral" 500: <<: *API500 security: - X-Api-Key: [ ] x-code-samples: summary: Generate Tron deposit address from Extended public key tags: - Blockchain / Tron /v3/tron/wallet/priv: post: description: | <h4>10 credit per API call.</h4><br/> <p>Generate private key for address from mnemonic for given derivation path index. Private key is generated for the specific index - each mnemonic can generate up to 2^31 private keys starting from index 0 until 2^31.</p> operationId: TronGenerateAddressPrivateKey requestBody: content: application/json: schema: $ref: "#/components/schemas/PrivKeyRequest" required: true responses: 200: content: application/json: schema: $ref: "#/components/schemas/PrivKey" description: OK 400: <<: *API400 401: <<: *API401 403: description: Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions. content: application/json: schema: $ref: "#/components/schemas/Error403BlockchainPrivateFailed" 500: <<: *API500 security: - X-Api-Key: [ ] x-code-samples: summary: Generate Tron private key tags: - Blockchain / Tron /v3/tron/info: get: tags: - Blockchain / Tron summary: Get current Tron block description: <h4>5 credits per API call.</h4><br/><p>Get current Tron block.</p> operationId: TronGetCurrentBlock responses: 200: content: application/json: schema: type: object properties: blockNumber: description: Block height. type: number example: 26585295 hash: description: Block hash. type: string example: 000000000195a8cfe2ea4ca60ce921b30e95980a96c6bb1da4a35aa03da9c5a8 testnet: description: Wether the block is from mainnet of Shasta testnet type: boolean example: false description: OK 401: <<: *API401 403: description: Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions. content: application/json: schema: $ref: "#/components/schemas/Error403Tron" 500: <<: *API500 security: - X-Api-Key: [ ] x-code-samples: /v3/tron/block/{hash}: get: tags: - Blockchain / Tron summary: Get Tron block description: <h4>5 credits per API call.</h4><br/><p>Get Tron block by hash or height.</p> operationId: TronGetBlock parameters: - in: path name: hash required: true description: Block hash or height. schema: type: string example: "000000000195a8cfe2ea4ca60ce921b30e95980a96c6bb1da4a35aa03da9c5a8" responses: 200: content: application/json: schema: $ref: "#/components/schemas/TronBlock" description: OK 400: <<: *API400 401: <<: *API401 403: description: Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions. content: application/json: schema: $ref: "#/components/schemas/Error403Tron" 500: <<: *API500 security: - X-Api-Key: [ ] x-code-samples: /v3/tron/transaction/account/{address}: get: tags: - Blockchain / Tron summary: Get Tron Account transactions description: <h4>5 credits per API call.</h4><br/><p>Get Tron Account transactions. Default page size is 200 transactions per request.</p> operationId: TronAccountTx parameters: - in: path name: address description: Address to get transactions for. required: true schema: type: string example: TGDqQAP5bduoPKVgdbk7fGyW4DwEt3RRn8 - in: query name: next description: If required: false schema: type: string example: 81d0524acf5967f3b361e03fd7d141ab511791cd7aad7ae406c4c8d408290991 responses: 200: content: application/json: schema: type: object required: - transactions properties: next: type: string description: If present, there are more transactions for address. example: 81d0524acf5967f3b361e03fd7d141ab511791cd7aad7ae406c4c8d408290991 transactions: type: array description: List of transactions. items: $ref: "#/components/schemas/TronTx" description: OK 400: <<: *API400 401: <<: *API401 403: description: Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions. content: application/json: schema: $ref: "#/components/schemas/Error403Tron" 500: <<: *API500 security: - X-Api-Key: [ ] x-code-samples: /v3/tron/transaction/account/{address}/trc20: get: tags: - Blockchain / Tron summary: Get Tron Account TRC20 transactions description: <h4>5 credits per API call.</h4><br/><p>Get Tron Account TRC20 transactions. Default page size is 200 transactions per request.</p> operationId: TronAccountTx20 parameters: - in: path name: address description: Address to get transactions for. required: true schema: type: string example: TGDqQAP5bduoPKVgdbk7fGyW4DwEt3RRn8 - in: query name: next description: If required: false schema: type: string example: 81d0524acf5967f3b361e03fd7d141ab511791cd7aad7ae406c4c8d408290991 responses: 200: content: application/json: schema: type: object required: - transactions properties: next: type: string description: If present, there are more transactions for address. example: 81d0524acf5967f3b361e03fd7d141ab511791cd7aad7ae406c4c8d408290991 transactions: type: array description: List of transactions. items: $ref: "#/components/schemas/TronTx20" description: OK 400: <<: *API400 401: <<: *API401 403: description: Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions. content: application/json: schema: $ref: "#/components/schemas/Error403Tron" 500: <<: *API500 security: - X-Api-Key: [ ] x-code-samples: /v3/tron/account/{address}: get: tags: - Blockchain / Tron summary: Get Tron Account by address description: <h4>5 credits per API call.</h4><br/><p>Get Tron account by address.</p> operationId: TronGetAccount parameters: - in: path name: address required: true description: Account address. schema: type: string example: TGDqQAP5bduoPKVgdbk7fGyW4DwEt3RRn8 responses: 200: content: application/json: schema: $ref: "#/components/schemas/TronAccount" description: OK 400: <<: *API400 401: <<: *API401 403: description: Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions. content: application/json: schema: $ref: "#/components/schemas/Error403Tron" 500: <<: *API500 security: - X-Api-Key: [ ] x-code-samples: /v3/tron/transaction/{hash}: get: tags: - Blockchain / Tron summary: Get Tron transaction by hash description: <h4>5 credits per API call.</h4><br/><p>Get Tron transaction by hash.</p> operationId: TronGetTransaction parameters: - in: path name: hash required: true description: Transaction hash. schema: type: string example: "81d0524acf5967f3b361e03fd7d141ab511791cd7aad7ae406c4c8d408290991" responses: 200: content: application/json: schema: $ref: "#/components/schemas/TronTx" description: OK 400: <<: *API400 401: <<: *API401 403: description: Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions. content: application/json: schema: $ref: "#/components/schemas/Error403Tron" 500: <<: *API500 security: - X-Api-Key: [ ] x-code-samples: /v3/tron/transaction: post: tags: - Blockchain / Tron summary: Send Tron transaction description: | <h4>10 credits per API call.</h4><br/> <p>Send Tron transaction from address to address.<br/><br/> 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 loss of funds. In this method, it is possible to enter privateKey. PrivateKey should be used only for quick development on testnet versions of blockchain when there is no risk of losing funds. In production, it is possible to use the Tatum client library for supported languages or Tatum Middleware with a custom key management system. </p> operationId: TronTransfer requestBody: content: application/json: schema: oneOf: - $ref: "#/components/schemas/TransferTronBlockchain" - $ref: "#/components/schemas/TransferTronBlockchainKMS" required: true responses: 200: content: application/json: schema: $ref: "#/components/schemas/TransactionHash" description: OK 400: <<: *API400 401: <<: *API401 403: description: Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions. content: application/json: schema: $ref: "#/components/schemas/Error403Tron" 500: <<: *API500 security: - X-Api-Key: [ ] x-code-samples: /v3/tron/freezeBalance: post: tags: - Blockchain / Tron summary: Freeze Tron balance description: | <h4>10 credits per API call.</h4><br/> <p>Freeze Tron assets on the address. By freezing assets, you can obtain energy or bandwith to perform transactions.<br/><br/> 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 loss of funds. In this method, it is possible to enter privateKey. PrivateKey should be used only for quick development on testnet versions of blockchain when there is no risk of losing funds. In production, it is possible to use the Tatum client library for supported languages or Tatum Middleware with a custom key management system. </p> operationId: TronFreeze requestBody: content: application/json: schema: oneOf: - $ref: "#/components/schemas/FreezeTron" - $ref: "#/components/schemas/FreezeTronKMS" required: true responses: 200: content: application/json: schema: $ref: "#/components/schemas/TransactionHash" description: OK 400: <<: *API400 401: <<: *API401 403: description: Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions. content: application/json: schema: $ref: "#/components/schemas/Error403Tron" 500: <<: *API500 security: - X-Api-Key: [ ] x-code-samples: /v3/tron/trc10/transaction: post: tags: - Blockchain / Tron summary: Send Tron TRC10 transaction description: | <h4>10 credits per API call.</h4><br/> <p>Send Tron TRC10 transaction from address to address.<br/><br/> 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 loss of funds. In this method, it is possible to enter privateKey. PrivateKey should be used only for quick development on testnet versions of blockchain when there is no risk of losing funds. In production, it is possible to use the Tatum client library for supported languages or Tatum Middleware with a custom key management system. </p> operationId: TronTransferTrc10 requestBody: content: application/json: schema: oneOf: - $ref: "#/components/schemas/TransferTronTrc10Blockchain" - $ref: "#/components/schemas/TransferTronTrc10BlockchainKMS" required: true responses: 200: content: application/json: schema: $ref: "#/components/schemas/TransactionHash" description: OK 400: <<: *API400 401: <<: *API401 403: description: Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions. content: application/json: schema: $ref: "#/components/schemas/Error403Tron" 500: <<: *API500 security: - X-Api-Key: [ ] x-code-samples: /v3/tron/trc10/deploy: post: tags: - Blockchain / Tron summary: Create Tron TRC10 token description: | <h4>10 credits per API call.</h4><br/> <p>Create Tron TRC10 token. 1 account can create only 1 token. All supply of the tokens are transfered to the issuer account 100 seconds after the creation.<br/><br/> 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 loss of funds. In this method, it is possible to enter privateKey. PrivateKey should be used only for quick development on testnet versions of blockchain when there is no risk of losing funds. In production, it is possible to use the Tatum client library for supported languages or Tatum Middleware with a custom key management system. </p> operationId: TronCreateTrc10 requestBody: content: application/json: schema: oneOf: - $ref: "#/components/schemas/CreateTronTrc10Blockchain" - $ref: "#/components/schemas/CreateTronTrc10BlockchainKMS" required: true responses: 200: content: application/json: schema: $ref: "#/components/schemas/TransactionHash" description: OK 400: <<: *API400 401: <<: *API401 403: description: Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions. content: application/json: schema: $ref: "#/components/schemas/Error403Tron" 500: <<: *API500 security: - X-Api-Key: [ ] x-code-samples: /v3/tron/trc10/detail/{id}: get: tags: - Blockchain / Tron summary: Get Tron TRC10 token detail description: | <h4>5 credits per API call.</h4><br/> <p>Get Tron TRC10 token details.</p> operationId: TronTrc10Detail parameters: - in: path name: id required: true description: TRC10 token ID schema: type: number example: 1000540 responses: 200: content: application/json: schema: $ref: "#/components/schemas/TronTrc10Detail" description: OK 400: <<: *API400 401: <<: *API401 403: description: Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions. content: application/json: schema: $ref: "#/components/schemas/Error403Tron" 500: <<: *API500 security: - X-Api-Key: [ ] x-code-samples: /v3/tron/trc20/transaction: post: tags: - Blockchain / Tron summary: Send Tron TRC20 transaction description: | <h4>10 credits per API call.</h4><br/> <p>Send Tron TRC20 transaction from address to address.<br/><br/> 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 loss of funds. In this method, it is possible to enter privateKey. PrivateKey should be used only for quick development on testnet versions of blockchain when there is no risk of losing funds. In production, it is possible to use the Tatum client library for supported languages or Tatum Middleware with a custom key management system. </p> operationId: TronTransferTrc20 requestBody: content: application/json: schema: oneOf: - $ref: "#/components/schemas/TransferTronTrc20Blockchain" - $ref: "#/components/schemas/TransferTronTrc20BlockchainKMS" required: true responses: 200: content: application/json: schema: $ref: "#/components/schemas/TransactionHash" description: OK 400: <<: *API400 401: <<: *API401 403: description: Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions. content: application/json: schema: $ref: "#/components/schemas/Error403Tron" 500: <<: *API500 security: - X-Api-Key: [ ] x-code-samples: /v3/tron/trc20/deploy: post: tags: - Blockchain / Tron summary: Create Tron TRC20 token description: | <h4>10 credits per API call.</h4><br/> <p>Create Tron TRC20 token. 1 account can create only 1 token. All supply of the tokens are transfered to the issuer account 100 seconds after the creation.<br/><br/> 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 loss of funds. In this method, it is possible to enter privateKey. PrivateKey should be used only for quick development on testnet versions of blockchain when there is no risk of losing funds. In production, it is possible to use the Tatum client library for supported languages or Tatum Middleware with a custom key management system. </p> operationId: TronCreateTrc20 requestBody: content: application/json: schema: oneOf: - $ref: "#/components/schemas/CreateTronTrc20Blockchain" - $ref: "#/components/schemas/CreateTronTrc20BlockchainKMS" required: true responses: 200: content: application/json: schema: $ref: "#/components/schemas/TransactionHash" description: OK 400: <<: *API400 401: <<: *API401 403: description: Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions. content: application/json: schema: $ref: "#/components/schemas/Error403Tron" 500: <<: *API500 security: - X-Api-Key: [ ] x-code-samples: /v3/tron/broadcast: post: tags: - Blockchain / Tron summary: Broadcast Tron transaction description: | <h4>5 credits per API call.</h4><br/> <p>Broadcast Tron transaction. This method is used internally from Tatum Middleware or Tatum client libraries. It is possible to create custom signing mechanism and use this method only for broadcasting data to the blockchian.</p> operationId: TronBroadcast requestBody: content: application/json: schema: $ref: "#/components/schemas/TronBroadcast" required: true responses: 200: content: application/json: schema: $ref: "#/components/schemas/TransactionHash" description: OK 400: <<: *API400 401: <<: *API401 403: description: Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions. content: application/json: schema: $ref: "#/components/schemas/Error403Tron" 500: <<: *API500 security: - X-Api-Key: [ ] x-code-samples: components: securitySchemes: X-Api-Key: description: | To maintain the highest security level, Tatum requires X-API-Key HTTP header. This X-API-Key represents identification of the plan and can be used by 1 developer or per environment. Each X-API-Key is bound to the test or production blockchains. in: header name: x-api-key type: apiKey schemas: TransferTronBlockchain: type: object properties: fromPrivateKey: type: string minLength: 64 maxLength: 64 description: Private key of the address, from which the TRX will be sent. example: 842E09EB40D8175979EFB0071B28163E11AED0F14BDD84090A4CEFB936EF5701 to: type: string minLength: 34 maxLength: 34 description: Recipient address of TRON account in Base58 format. example: TYMwiDu22V6XG3yk6W9cTVBz48okKLRczh amount: description: Amount to be sent in TRX. example: "100000" pattern: ^[+]?((\d+(\.\d*)?)|(\.\d+))$ type: string required: - fromPrivateKey - to - amount TransferTronBlockchainKMS: type: object properties: from: type: string minLength: 34 maxLength: 34 description: Sender address of TRON account in Base58 format. example: TYMwiDu22V6XG3yk6W9cTVBz48okKLRczh signatureId: type: string minimum: 36 maximum: 36 format: uuid example: 1f7f7c0c-3906-4aa1-9dfe-4b67c43918f6 description: Identifier of the private key associated in signing application. Private key, or signature Id must be present. to: type: string minLength: 34 maxLength: 34 description: Recipient address of TRON account in Base58 format. example: TYMwiDu22V6XG3yk6W9cTVBz48okKLRczh amount: description: Amount to be sent in TRX. example: "100000" pattern: ^[+]?((\d+(\.\d*)?)|(\.\d+))$ type: string index: type: number minimum: 0 description: If signatureId is mnemonic-based, this is the index to the specific address from that mnemonic. required: - from - signatureId - to - amount - index TransferTronTrc10Blockchain: type: object properties: fromPrivateKey: type: string minLength: 64 maxLength: 64 description: Private key of the address, from which the TRX will be sent. example: 842E09EB40D8175979EFB0071B28163E11AED0F14BDD84090A4CEFB936EF5701 to: type: string minLength: 34 maxLength: 34 description: Recipient address of TRON account in Base58 format. example: TYMwiDu22V6XG3yk6W9cTVBz48okKLRczh tokenId: type: string minLength: 1 maxLength: 100 description: ID of the token to transfer. example: "1000538" amount: description: Amount to be sent in TRX. example: "100000" pattern: ^[+]?((\d+(\.\d*)?)|(\.\d+))$ type: string required: - fromPrivateKey - tokenId - to - amount TransferTronTrc10BlockchainKMS: type: object properties: from: type: string minLength: 34 maxLength: 34 description: Sender address of TRON account in Base58 format. example: TYMwiDu22V6XG3yk6W9cTVBz48okKLRczh signatureId: type: string minimum: 36 maximum: 36 format: uuid example: 1f7f7c0c-3906-4aa1-9dfe-4b67c43918f6 description: Identifier of the private key associated in signing application. Private key, or signature Id must be present. index: type: number minimum: 0 description: If signatureId is mnemonic-based, this is the index to the specific address from that mnemonic. to: type: string minLength: 34 maxLength: 34 description: Recipient address of TRON account in Base58 format. example: TYMwiDu22V6XG3yk6W9cTVBz48okKLRczh tokenId: type: string minLength: 1 maxLength: 100 description: ID of the token to transfer. example: "1000538" amount: description: Amount to be sent in TRX. example: "100000" pattern: ^[+]?((\d+(\.\d*)?)|(\.\d+))$ type: string required: - from - signatureId - index - tokenId - to - amount TransferTronTrc20Blockchain: type: object properties: fromPrivateKey: type: string minLength: 64 maxLength: 64 description: Private key of the address, from which the TRX will be sent. example: 842E09EB40D8175979EFB0071B28163E11AED0F14BDD84090A4CEFB936EF5701 to: type: string minLength: 34 maxLength: 34 description: Recipient address of TRON account in Base58 format. example: TYMwiDu22V6XG3yk6W9cTVBz48okKLRczh tokenAddress: type: string minLength: 34 maxLength: 34 description: Address of the TRC20 token to transfer. example: "TVAEYCmc15awaDRAjUZ1kvcHwQQaoPw2CW" feeLimit: type: number minimum: 0 description: Fee in TRX to be paid. example: 0.01 amount: description: Amount to be sent in TRX. example: "100000" pattern: ^[+]?((\d+(\.\d*)?)|(\.\d+))$ type: string required: - fromPrivateKey - tokenAddress - to - amount - feeLimit TransferTronTrc20BlockchainKMS: type: object properties: from: type: string minLength: 34 maxLength: 34 description: Sender address of TRON account in Base58 format. example: TYMwiDu22V6XG3yk6W9cTVBz48okKLRczh signatureId: type: string minimum: 36 maximum: 36 format: uuid example: 1f7f7c0c-3906-4aa1-9dfe-4b67c43918f6 description: Identifier of the private key associated in signing application. Private key, or signature Id must be present. index: type: number minimum: 0 description: If signatureId is mnemonic-based, this is the index to the specific address from that mnemonic. to: type: string minLength: 34 maxLength: 34 description: Recipient address of TRON account in Base58 format. example: TYMwiDu22V6XG3yk6W9cTVBz48okKLRczh tokenAddress: type: string minLength: 34 maxLength: 34 description: Address of the TRC20 token to transfer. example: "TVAEYCmc15awaDRAjUZ1kvcHwQQaoPw2CW" feeLimit: type: number minimum: 0 description: Fee in TRX to be paid. example: 0.01 amount: description: Amount to be sent in TRX. example: "100000" pattern: ^[+]?((\d+(\.\d*)?)|(\.\d+))$ type: string required: - from - signatureId - index - tokenAddress - to - amount - feeLimit CreateTronTrc20Blockchain: type: object properties: fromPrivateKey: type: string minLength: 64 maxLength: 64 description: Private key of the address, from which the TRX will be sent. example: 842E09EB40D8175979EFB0071B28163E11AED0F14BDD84090A4CEFB936EF5701 recipient: type: string minLength: 34 maxLength: 34 description: Recipient address of created TRC20 tokens. example: TYMwiDu22V6XG3yk6W9cTVBz48okKLRczh name: type: string minLength: 1 maxLength: 100 description: Name of the token. example: My token symbol: type: string minLength: 1 maxLength: 100 description: Symbol of the token. example: SYM totalSupply: type: number minimum: 0 description: Total supply of the tokens. example: 100000 decimals: type: number minimum: 0 maximum: 30 description: Number of decimal places of the token. example: 10 required: - fromPrivateKey - name - recipient - symbol - totalSupply - decimals CreateTronTrc20BlockchainKMS: type: object properties: from: type: string minLength: 34 maxLength: 34 description: Sender address of TRON account in Base58 format. example: TYMwiDu22V6XG3yk6W9cTVBz48okKLRczh signatureId: type: string minimum: 36 maximum: 36 format: uuid example: 1f7f7c0c-3906-4aa1-9dfe-4b67c43918f6 description: Identifier of the private key associated in signing application. Private key, or signature Id must be present. index: type: number minimum: 0 description: If signatureId is mnemonic-based, this is the index to the specific address from that mnemonic. recipient: type: string minLength: 34 maxLength: 34 description: Recipient address of created TRC20 tokens. example: TYMwiDu22V6XG3yk6W9cTVBz48okKLRczh name: type: string minLength: 1 maxLength: 100 description: Name of the token. example: My token symbol: type: string minLength: 1 maxLength: 100 description: Symbol of the token. example: SYM totalSupply: type: number minimum: 0 description: Total supply of the tokens. example: 100000 decimals: type: number minimum: 0 maximum: 30 description: Number of decimal places of the token. example: 10 required: - from - signatureId - index - name - recipient - symbol - totalSupply - decimals CreateTronTrc10Blockchain: type: object properties: fromPrivateKey: type: string minLength: 64 maxLength: 64 description: Private key of the address, from which the TRX will be sent. example: 842E09EB40D8175979EFB0071B28163E11AED0F14BDD84090A4CEFB936EF5701 recipient: type: string minLength: 34 maxLength: 34 description: Recipient address of created TRC 10 tokens. example: TYMwiDu22V6XG3yk6W9cTVBz48okKLRczh name: type: string minLength: 1 maxLength: 100 description: Name of the token. example: My token abbreviation: type: string minLength: 1 maxLength: 100 description: Abbreviation of the token. example: SYM description: type: string minLength: 1 maxLength: 100 description: Description of the token. example: My short description url: type: string minLength: 1 maxLength: 100 description: URL of the token. example: https://mytoken.com totalSupply: type: number minimum: 0 description: Total supply of the tokens. example: 100000 decimals: type: number minimum: 0 maximum: 5 description: Number of decimal places of the token. example: 10 required: - fromPrivateKey - recipient - name - abbreviation - description - url - totalSupply - decimals CreateTronTrc10BlockchainKMS: type: object properties: from: type: string minLength: 34 maxLength: 34 description: Sender address of TRON account in Base58 format. example: TYMwiDu22V6XG3yk6W9cTVBz48okKLRczh signatureId: type: string minimum: 36 maximum: 36 format: uuid example: 1f7f7c0c-3906-4aa1-9dfe-4b67c43918f6 description: Identifier of the private key associated in signing application. Private key, or signature Id must be present. index: type: number minimum: 0 description: If signatureId is mnemonic-based, this is the index to the specific address from that mnemonic. recipient: type: string minLength: 34 maxLength: 34 description: Recipient address of created TRC 10 tokens. example: TYMwiDu22V6XG3yk6W9cTVBz48okKLRczh name: type: string minLength: 1 maxLength: 100 description: Name of the token. example: My token abbreviation: type: string minLength: 1 maxLength: 100 description: Abbreviation of the token. example: SYM description: type: string minLength: 1 maxLength: 100 description: Description of the token. example: My short description url: type: string minLength: 1 maxLength: 100 description: URL of the token. example: https://mytoken.com totalSupply: type: number minimum: 0 description: Total supply of the tokens. example: 100000 decimals: type: number minimum: 0 maximum: 5 description: Number of decimal places of the token. example: 10 required: - from - signatureId - index - recipient - name - abbreviation - description - url - totalSupply - decimals TronTrc10Detail: type: object properties: ownerAddress: type: string minLength: 34 maxLength: 34 description: Address of the owner of the token, in hex. example: '41d2803f9c22aa429d71554c9427e97ffedcec17c7' name: type: string minLength: 1 maxLength: 100 description: Name of the token. example: My token abbr: type: string minLength: 1 maxLength: 100 description: Abbreviation of the token. example: SYM description: type: string minLength: 1 maxLength: 100 description: Description of the token. example: My short description url: type: string minLength: 1 maxLength: 100 description: URL of the token. example: https://mytoken.com totalSupply: type: number minimum: 0 description: Total supply of the tokens. example: 100000 precision: type: number minimum: 0 maximum: 5 description: Number of decimal places of the token. example: 10 FreezeTron: type: object properties: fromPrivateKey: type: string minLength: 64 maxLength: 64 description: Private key of the address, from which the TRX will be sent. example: 842E09EB40D8175979EFB0071B28163E11AED0F14BDD84090A4CEFB936EF5701 receiver: type: string minLength: 34 maxLength: 34 description: Recipient address of frozen BANDWIDTH or ENERGY. example: TYMwiDu22V6XG3yk6W9cTVBz48okKLRczh duration: type: number description: Duration of frozen funds, in days. example: 3 minimum: 3 resource: type: string description: Resource to obtain, BANDWIDTH or ENERGY. example: ENERGY enum: - BANDWIDTH - ENERGY amount: description: Amount to be frozen in TRX. example: "100000" pattern: ^[+]?((\d+(\.\d*)?)|(\.\d+))$ type: string required: - fromPrivateKey - receiver - resource - duration - amount FreezeTronKMS: type: object properties: from: type: string minLength: 34 maxLength: 34 description: Sender address of TRON account in Base58 format. example: TYMwiDu22V6XG3yk6W9cTVBz48okKLRczh signatureId: type: string minimum: 36 maximum: 36 format: uuid example: 1f7f7c0c-3906-4aa1-9dfe-4b67c43918f6 description: Identifier of the private key associated in signing application. Private key, or signature Id must be present. index: type: number minimum: 0 description: If signatureId is mnemonic-based, this is the index to the specific address from that mnemonic. receiver: type: string minLength: 34 maxLength: 34 description: Recipient address of frozen BANDWIDTH or ENERGY. example: TYMwiDu22V6XG3yk6W9cTVBz48okKLRczh duration: type: number description: Duration of frozen funds, in days. example: 3 minimum: 3 resource: type: string description: Resource to obtain, BANDWIDTH or ENERGY. example: ENERGY enum: - BANDWIDTH - ENERGY amount: description: Amount to be frozen in TRX. example: "100000" pattern: ^[+]?((\d+(\.\d*)?)|(\.\d+))$ type: string required: - from - signatureId - index - receiver - resource - duration - amount Error403Tron: properties: errorCode: description: tron.failed example: tron.failed type: string message: description: Unable to communicate to blockchain. ${error} example: Unable to communicate to blockchain. ${error} type: string statusCode: description: "403" example: 403 type: number required: - errorCode - message - statusCode type: object TronWallet: type: object required: - mnemonic - xpub properties: mnemonic: description: Generated mnemonic for wallet. example: "urge pulp usage sister evidence arrest palm math please chief egg abuse" type: string xpub: description: Generated Extended public key for wallet with derivation path according to BIP44. This key can be used to generate addresses. example: 0244b3f40c6e570ae0032f6d7be87737a6c4e5314a4a1a82e22d0460a0d0cd794936c61f0c80dc74ace4cd04690d4eeb1aa6555883be006e1748306faa7ed3a26a type: string TronBlock: type: object properties: hash: type: string description: Block hash example: 000000000195a8cfe2ea4ca60ce921b30e95980a96c6bb1da4a35aa03da9c5a8 blockNumber: type: number description: Block number. example: 26585295 timestamp: type: number description: Time of the block in UTC millis. example: 1610134209000 parentHash: type: string description: Hash of the parent block. example: 000000000195a8ce6003aa8b6443c52734b80aefdcd079bf40e7f165b046370e witnessAddress: type: string description: Witness address. example: 4118e2e1c6cdf4b74b7c1eb84682e503213a174955 witnessSignature: type: string description: Witness signature. example: e20cb7a1f01d279ebe9c20baa0d747bea160042639ba