Skip to main content

Hedera

getHederaSignedTransaction​

This function is for:

  • HEDERA (HBAR)
  • HEDERA_HTS - hedera token
  • HEDERA_TESTNET (HBARt)
  • HTS_TESTNET

Parameters​

ParameterTypeDescription
coinTypeCoinTypehedera coin type.
transactionHederaTransactionhedera transaction parameters.

class HederaTransaction​

NameTypeDescription
hdKeyPathBip44KeyPathkey path to sign this hedera transaction
unsignedStringtransaction that has not been signed of hedera transaction
decimalsinttransaction decimals of hedera transaction
symbolStringtransaction symbol of hedera transaction

Returns​

String - signed transaction.

Requirements​

  • DCENT Biometric Wallet version 2.13.0 or higher is required.

Example

String keyPath = "m/44'/3030'/0'";
HederaTransaction hederaTransaction;

hederaTransaction = new HederaTransaction.Builder()
.keyPath(Bip44KeyPath.valueOf(keyPath))
.decimals(8)
.unsigned("0a1a0a0b0893b888880610cdfab9741209080010001895cb84011800120608001000180318c0843d22020878320072280a260a110a09080010001895cb840110ff87debe010a110a090800100018c1cb8401108088debe01")
.symbol("HBAR")
.build();

String response = mDcentmanager.getHederaSignedTransaction(CoinType.HEDERA, hederaTransaction);