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
  • getConfluxSignedTransaction
  • Parameters
  • Returns
  • Requirements
  • getConfluxCrc20SignedTransaction
  • Parameters
  • Returns
  • ARequirements

Was this helpful?

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

Conflux

getConfluxSignedTransaction

This function for :

  • CONFLUX (CRX)

Parameters

Parameter
Type
Description

coinType

CoinType

conflux coin type.

transaction

conflux transaction parameters.

class ConfluxTransaction

Name
Type
Description

nonce

String

account nonce for Conflux transaction

gasPrice

String

gas price for Conflux transaction

gasLimit

int

gas limit value of Conflux transaction

toAddr

String

address to send

amount

String

amount of CFX to send of Conflux transaction

storageLimit

String

storageLimit for Conflux transaction

epochHeight

String

epochHeight for Conflux transaction

chainId

String

chain id for Conflux transaction

data

String

(optional)transaction input data for Conflux transaction

hdKeyPath

Bip44KeyPath

sign key path for Conflux transaction

Returns

String - signed transaction.

Requirements

  • D'CENT Biometric Wallet version 2.18.3 or higher is required.

Example

String keyPath = "m/44'/60'/0'/0/0";
ConfluxTransaction confluxTransaction;

confluxTransaction = new ConfluxTransaction.Builder()
                    .keyPath(Bip44KeyPath.valueOf(keyPath))
                    .nonce("0")
                    .gasPrice("1")
                    .gasLimit("53000")
                    .toAddr("cfx:aath39ukgygwae5jnhuj1z02vkkc68wsu62j5spdng")
                    .amount("499993640000000000000")
                    .storageLimit("0")
                    .epochHeight("57744640")
                    .chainId("1029")
                    .data("")
                    .build();

String response = mDcentmanager.getConfluxSignedTransaction(CoinType.CONFLUX, confluxTransaction);

getConfluxCrc20SignedTransaction

This function for :

  • CFX_CRC20 - Conflux Token

Parameters

Parameter
Type
Description

coinType

CoinType

conflux crc20 coin type.

transaction

conflux crc20 transaction parameters.

class ConfluxCrc20Transaction

Name
Type
Description

nonce

String

account nonce for Conflux transaction

gasPrice

String

gas price for Conflux transaction

gasLimit

int

gas limit value of Conflux transaction

toAddr

String

address to send

amount

String

amount of CFX to send of Conflux transaction

storageLimit

String

storageLimit for Conflux transaction

epochHeight

String

epochHeight for Conflux transaction

chainId

String

chain id for Conflux transaction

data

String

(optional)transaction input data for Conflux transaction

hdKeyPath

Bip44KeyPath

sign key path for Conflux transaction

name

String

token name of Crc20 transaction

contractAddress

String

contractAddress of Crc20 transaction

toAddress

String

toAddress of Crc20 transaction

decimals

String

decimals of of Crc20 transaction

value

String

amount of ether to be sent of Crc20. ( Drip unit value )

symbol

String

symbol of Crc20 transaction

Returns

String - signed transaction.

ARequirements

  • D'CENT Biometric Wallet version 2.18.3 or higher is required.

Example

String keyPath = "m/44'/60'/0'/0/0";
ConfluxCrc20Transaction confluxCrc20Transaction;

confluxCrc20Transaction = new ConfluxCrc20Transaction.Builder()
                    .keyPath(Bip44KeyPath.valueOf(keyPath))
                    .nonce("0")
                    .gasPrice("1")
                    .gasLimit("53000")
                    .toAddr("cfx:acdeewzdr3cv7hvc12kdwp7gzysjaexz9jw7s1uaft")
                    .amount("0")
                    .storageLimit("0")
                    .epochHeight("58463079")
                    .chainId("1029")
                    .data("")
                    .name("IoTestCoin")
                    .contractAddress("cfx:acdeewzdr3cv7hvc12kdwp7gzysjaexz9jw7s1uaft")
                    .toAddressForCrc20("cfx:aath39ukgygwae5jnhuj1z02vkkc68wsu62j5spdng")
                    .decimals("18")
                    .value("5000000000000000000")
                    .symbol("ITC")
                    .build();

String response = mDcentmanager.getConfluxCrc20SignedTransaction(CoinType.CFX_CRC20, confluxCrc20Transaction)
PreviousSolanaNextPolkadot

Last updated 1 year ago

Was this helpful?

ConfluxTransaction
ConfluxCrc20Transaction