Hedera

getHederaSignedTransaction

This function for :

  • HEDERA (HBAR)

  • HEDERA_HTS - hedera token

  • HEDERA_TESTNET (HBARt)

  • HTS_TESTNET

Parameters

ParameterTypeDescription

coinType

CoinType

hedera coin type.

transaction

hedera transaction parameters.

class HederaTransaction

NameTypeDescription

hdKeyPath

Bip44KeyPath

key path to sign this hedera transaction

unsigned

String

transaction that has not been signed of hedera transaction

decimals

int

transaction decimals of hedera transaction

symbol

String

transaction symbol of hedera transaction

Returns

String - signed transaction.

Requirements

  • D'CENT 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);

Last updated