Skip to main content

Tron

getTronSignedTransaction

This function is for:

  • TRON (TRX)
  • TRC_TOKEN - TRON Token
  • TRX_TESTNET (tTRX) - TRON Testnet
  • TRC_TESTNET

Parameters

ParameterTypeDescription
coinTypeCoinTypetron coin type.
transactionTronTransactiontron transaction parameters.

class TronTransaction

NameTypeDescription
hdKeyPathBip44KeyPathsign key path for tron transaction
signBytesStringtransaction that has not been signed of this tron transaction
feeValueStringtransaction fee of this tron transaction
* Fee value is configured in tron(TRX) unit.

Returns

String - signed transaction.

Requirements

  • DCENT Biometric Wallet version 2.2.2. or higher is required.

Example

String keyPath = "m/44'/195'/0'/0/0";
TronTransaction tronTransaction;

tronTransaction = new TronTransaction.Builder()
.keyPath(Bip44KeyPath.valueOf(keyPath))
.signBytes("0a02610a220838507457b79561a740e8dd8fefaf2e5a65080112610a2d747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e73666572436f6e747261637412300a15418f2d2dfaa81af60f5a3ac4ca5597e795aff7abae121541c27dcd7d914fd6aa8fec3c8a41cb2e90883bc6f0187f70dd978cefaf2e")
.feeValue("0.262")
.build();

String response = mDcentmanager.getTronSignedTransaction(CoinType.TRON, tronTransaction);