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
  • getKalytnSignedTransaction
  • Parameters
  • Returns

Was this helpful?

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

Klaytn

getKalytnSignedTransaction

The D'CENT Android SDK provides functions for signing transaction of coins.

This function for :

  • KLAYTN (KLAY)

  • KLAYTN_ERC20 - klaytn token

  • KLAY_BAOBAB (KLAYt)

  • KRC20_BAOBAB

Parameters

Parameter
Type
Description

coinType

CoinType

klaytn coin type.

transaction

klaytn transaction parameters.

class KlaytnTransaction

Name
Type
Description

hdKeyPath

Bip44KeyPath

sign key path for klaytn transaction

nonce

String

account nonce for klaytn transaction

toAddr

String

address to send

amount

String

amount of ETH to send

gasLimit

String

gas limit value

gasPrice

String

gas price for klaytn transaction

data

String

transaction data of klaytn transaction

chainId

int

chain id

txType

KlaytnTxType

(optional)Type of klaytn transaction This can be set using the setOptionAttribute() method. The default is TX_TYPE_LEGACY

fromAddr

String

(optional)Signer's Address of klaytn transaction This can be set using the setOptionAttribute() method.

feeRatio

int

(optional)Fee Ratio of klaytn transaction This can be set using the setOptionAttribute() method.

tokenName

String

(optional)token name of contract for KLAYTN_ERC20 transaction This can be set using the setTokenAttribute()method.

decimals

String

(optional)decimals of contract for KLAYTN_ERC20 transaction This can be set using the setTokenAttribute()method.

symbol

String

(optional)symbol of contract for KLAYTN_ERC20 transaction This can be set using the setTokenAttribute()method.

Returns

String - signed transaction.

Example

KlaytnTransaction klaytnTransanction;
klaytnTransanction = new KlaytnTransaction.Builder()
                .keyPath(Bip44KeyPath.valueOf("m/44'/8217'/0'/0/0"))
                .nonce("0")
                .toAddr("0x732E035fBdb9E5AB5Ef80c08f6aA081d029984dc")
                .amount("1000000000000000000")
                .gasLimit("25000")
                .gasPrice("25000000000")
                .data("")
                .chainId(1001)
                .build();

String response = mDcentmanager.getKlaytnSignedTransaction(CoinType.KLAYTN, klaytnTransanction);
PreviousEthereum & EVM compatibleNextXRPL

Last updated 1 year ago

Was this helpful?

KlaytnTransaction