Skip to main content

Polkadot

getPolkadotSignedTransaction

This function is for:

  • POLKADOT (DOT)

Parameters

ParameterTypeDescription
coinTypeCoinTypepolkadot coin type.
transactionPolkadotTransactionpolkadot transaction parameters.

class PolkadotTransaction

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

Returns

String - signed transaction.

Requirements

  • DCENT Biometric Wallet version 2.19.1 or higher is required.

Example

String keyPath = "m/44'/354'/0'/0/0";
PolkadotTransaction polkadotTransaction;

polkadotTransaction = new PolkadotTransaction.Builder()
.keyPath(Bip44KeyPath.valueOf(keyPath))
.sigHash("040000163a5ee36b1243ce5241c0a45010dd1717869e9918c040bf5d305be4a5af9e7a0b00407a10f35a003400a223000007000000e143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423ee143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e")
.fee("0.0000000005")
.decimals(12)
.symbol("DOT")
.build();

String response = mDcentmanager.getPolkadotSignedTransaction(CoinType.POLKADOT, polkadotTransaction);