Skip to main content

Vechain

getVechainSignedTransaction​

This function is for:

  • VECHAIN(VET)
  • VECHAIN_ERC20

Parameters​

ParameterTypeDescription
coinTypeCoinTypevechain coin type.
transactionVechainTransactionvechain transaction parameters.

class VechainTransaction​

NameTypeDescription
hdKeyPathBip44KeyPathsign key path for vechain transaction
sigHashStringtransaction that has not been signed of vechain transaction
decimalsinttransaction decimals of vechain transaction
symbolStringtransaction symbol of vechain transaction
feeStringtransaction fee of vechain transaction
* Fee value is configured in vechain(VET) unit.
nonceString(optional)transaction nonce of vechain transaction
optionParamString(optional)option parameter

Returns​

String - signed transaction.

Requirements​

  • DCENT Biometric Wallet version 2.23.2 or higher is required.

Example

String keyPath = "m/44'/818'/0'/0/0";
VechainTransaction vechainTransaction;

vechainTransaction = new VechainTransaction.Builder()
.keyPath(Bip44KeyPath.valueOf(keyPath))
.sigHash("f83b2787c6143a04c08fe18202d0e1e094a57105e43efa47e787d84bb6dfedb19bdcaa8a908908e3f50b173c100001808082520880860152671166bdc0")
.fee("0.21")
.decimals(18)
.symbol("VET")
.build();

String response = mDcentmanager.getVechainSignedTransaction(CoinType.VECHAIN, vechainTransaction);