Skip to main content

Havah

getHavahSignedTransaction

This function is for:

  • HAVAH(HVH)
  • HAVAH_HSP20(HSP20)
  • HAVAH_TESTNET(HVH)
  • HAVAH_HSP20_TESTNET

Parameters

ParameterTypeDescription
coinTypeCoinTypehavah coin type.
transactionHavahTransactionhavah transaction parameters.

class HavahTransaction

NameTypeDescription
hdKeyPathBip44KeyPathsign key path for havah transaction
sigHashStringtransaction that has not been signed of havah transaction
decimalsinttransaction decimals of havah transaction
symbolStringtransaction symbol of havah transaction
feeStringtransaction fee of havah transaction
* Fee value is configured in havah(HVH) unit.
nonceString(optional)transaction nonce of havah transaction
optionParamString(optional)hexadecimal value of the havah method type is used only in havah token
- '01' : Token Transfer
- '02' : Token Deposit
- '03' : Token Message
- '04': Token Deploy (The method will be supported later)

Returns

  • String - signed transaction.

Requirements

  • DCENT Biometric Wallet version 2.26.0 or higher is required.

Example

String keyPath = "m/44'/858'/0'/0/0";
HavahTransaction havahTransaction;

havahTransaction = new HavahTransaction.Builder()
.keyPath(Bip44KeyPath.valueOf(keyPath))
.sigHash("6963785f73656e645472616e73616374696f6e2e66726f6d2e6878316531333433353935303532383335613064396137643064396533353839633433323831623262642e6e69642e30783130302e6e6f6e63652e3078312e737465704c696d69742e307831616462302e74696d657374616d702e3078356661316631343633666161302e746f2e6878353833323164313731633833393465613434303638376562623462353832623037353739356663352e76616c75652e307833636235396163376237353734652e76657273696f6e2e307833")
.fee("0.001375")
.decimals(18)
.symbol("HVH")
.build();

String response = mDcentmanager.getHavahSignedTransaction(CoinType.HAVAH, havahTransaction);