D'CENT developer guide
Official siteUser GuideBlogTwitter
  • Introduction
  • How to Connect Your DApp to D’CENT Mobile App
  • In-app browser (dapp browser)
    • Getting Started
    • EVM compatible networks
    • Klaytn network
    • Tron network
  • Dynamic Link
    • Dynamic Link to In-app Browser
    • EIP-681 : Transaction/Payment Request
  • D'CENT WalletConnect (DWC)
    • Introduction
    • Packages
    • D'CENT WalletConnect
    • Test Environment
    • WalletConnect monorepo
  • Collectibles
    • NFT list on Collectibles tab
  • D'CENT biometric wallet for PC
    • D'CENT SDK for PC Environment
    • dcent-web-connector
      • Configurations
      • Device & Accounts Info.
      • Address & XPUB
      • Ethereum & EVM compatible
      • Klaytn
      • Bitcoin
      • XRPL (XRP Ledger)
      • Hedera (HBAR & HTS)
      • Tron (TRX & TRC20)
      • Stellar
      • Tezos (XTZ & XTZ_FA)
      • Vechain
      • Near (NEAR & Near Token)
      • Havah
      • Polkadot
      • Polkadot Parachain
      • Cosmos & Cosmos compatible network
      • Algorand
    • dcent-cli-connector
      • Configurations
      • Device & Accounts Info.
      • Address & XPUB
      • Ethereum & EVM compatible
      • Hedera (HBAR & HTS)
    • dcent-provider
  • D'CENT BIOMETRIC WALLET FOR Mobile
    • D'CENT SDK for Mobile Environment
    • dcent-biometric-sdk-android
      • Setup
      • Initialize
      • Device & Accrouts Info
      • Address & XPUB
      • Bitcoin
      • Ethereum & EVM compatible
      • Klaytn
      • XRPL
      • Binance
      • Stellar
      • Tron
      • Cardano
      • Hedera
      • Stacks
      • Solana
      • Conflux
      • Polkadot
      • Cosmos
      • Tezos
      • Vechain
      • Near
      • Havah
      • Algorand
    • dcent-biometric-sdk-ios
      • Setup
      • Initialize
      • Device & Accrouts Info
      • Address & XPUB
      • Bitcoin
      • Ethereum & EVM compatible
      • Klaytn
      • XRPL
      • Binance
      • Stellar
      • Tron
      • Cardano
      • Hedera
      • Stacks
      • Solana
      • Conflux
      • Polkadot
      • Cosmos
      • Tezos
      • Vechain
      • Near
      • Havah
      • Algorand
  • D'CENT Integrated Packages
    • Web3Modal
    • web3-onboard
  • Misc.
    • Logo & Brand Guideline
Powered by GitBook
On this page
  • getXrpSignedTransaction
  • Parameters
  • Returns
  • getXRPSignedTransactionWithUnsignedTx
  • Parameters

Was this helpful?

  1. D'CENT BIOMETRIC WALLET FOR Mobile
  2. dcent-biometric-sdk-android

XRPL

getXrpSignedTransaction

This function for :

  • XRP (XRP) - xrpl

  • XRP_TA - xrp ta

  • XRP_TESTNET (XRPt)

  • XRP_TA_TESTNET

Parameters

Parameter
Type
Description

coinType

CoinType

xrp coin type.

transaction

xrp transaction parameters.

class XrpTransaction

Name
Type
Description

hdKeyPath

Bip44KeyPath

sign key path for xrp transaction

sourceAddress

String

Source address of xrp transaction Only used in getXrpSignedTransaction()

destinationAddress

String

Destination addresse of xrptransaction Only used in getXrpSignedTransaction()

amountDrops

long

Amount to be send ( Drops unit value) Only used in getXrpSignedTransaction()

feeDrops

long

Fee of this transaction ( Drops unit value) Only used in getXrpSignedTransaction()

sequence

int

The sequence number, relative to the initiating account, of xrp transaction Only used in getXrpSignedTransaction()

destinationTag

long

Destination tag of xrp transaction Only used in getXrpSignedTransaction()

unsignedTx

String

Encoded unsigned Trasaction value for xrp transaction Only used in getXrpSingedTransactionWithUnsignedTx()

Returns

String - signed transaction.

Example

XrpTransaction xrpTransaction;

String address = mDcentManager.getAddress(CoinType.RIPPLE, Bip44KeyPath.valueOf("m/44'/144'/0'/0/0")).get("address");
xrpTransaction = new XrpTransaction.Builder()
                .keyPath(Bip44KeyPath.valueOf("m/44'/144'/0'/0/0"))
                .sourceAddress(address)
                .destinationAddress("rsHXBk5vnswg5SZxUQCEPYVnmrd4PaZ7Ah")
                .amountDrops(2)
                .feeDrops(10)
                .sequence(11)
                .destinationTag(-1)
                .build();

String response = mDcentManager.getXrpSignedTransaction(CoinType.XRP, xrpTransaction);

getXRPSignedTransactionWithUnsignedTx

This function for :

  • XRP (XRP) - xrpl

  • XRP_TA - xrp ta

  • XRP_TESTNET (XRPt)

  • XRP_TA_TESTNET

Parameters

Parameter
Type
Description

coinType

CoinType

xrp coin type.

transaction

xrp transaction parameters.

Returns

HashMap<String, String> - signed transaction{sign, pubkey, accountId}.

Example

XrpTransaction xrpTransaction;
xrpTransaction= new XrpTransaction .Builder()
                .keyPath(Bip44KeyPath.valueOf("m/44'/144'/0'/0/0"))
                .unsignedTx("1200002280000000240238634E2E00000000201B023863E161400000000098968068400000000000000A8114FD970F4612987680F4008BA53ED6FD87BE0DAAF983141DEE2154B117FB47FCF4F19CD983D9FCBB894FF7")
                .build();
HashMap<String, String> response = mDcentmanager.getXRPSignedTransactionWithUnsignedTx(CoinType.XRP, xrpTransaction);

String resSign = response.get("sign");
String resPubKey = response.get("pubkey");
String res_accountId = response.get("accountId");
PreviousKlaytnNextBinance

Last updated 1 year ago

Was this helpful?

XrpTransaction
XrpTransaction