Vechain

getVechainSignedTransaction

This function for :

  • VECHAIN(VET)

  • VECHAIN_ERC20

Parameters

Parameter
Type
Description

coinType

CoinType

vechain coin type.

transaction

vechain transaction parameters.

class VechainTransaction

Name
Type
Description

hdKeyPath

Bip44KeyPath

sign key path for vechain transaction

sigHash

String

transaction that has not been signed of vechain transaction

decimals

int

transaction decimals of vechain transaction

symbol

String

transaction symbol of vechain transaction

fee

String

transaction fee of vechain transaction * Fee value is configured in vechain(VET) unit.

nonce

String

(optional)transaction nonce of vechain transaction

optionParam

String

(optional)option parameter

Returns

String - signed transaction.

Requirements

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

Last updated