Klaytn
getKalytnSignedTransaction
The D'CENT Android SDK provides functions for signing transaction of coins.
This function for :
KLAYTN
(KLAY)KLAYTN_ERC20
- klaytn tokenKLAY_BAOBAB
(KLAYt)KRC20_BAOBAB
Parameters
coinType
CoinType
klaytn coin type.
transaction
klaytn transaction parameters.
class KlaytnTransaction
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
Last updated