Klaytn
Last updated
Last updated
The D'CENT Android SDK provides functions for signing transaction of coins.
This function for :
.KLAYTN
- klaytn (KLAY)
.KLAYTN_TESTNET
- kalytn baobab (KLAYt)
coinType: klaytn networks coin type
kalytnTransaction: (KlaytnTransation)klaytn transaction parameter
Name | Type | Description |
---|---|---|
enum KlaytnType
Defines Transaction type of Klaytn (refer to klaytn doc)
LEGACY
VALUE_TRANSFER
FEE_DELEGATED_VALUE_TRANSFER
FEE_DELEGATED_VALUE_TRANSFER_WITH_RATIO
VALUE_TRANSFER_MEMO
FEE_DELEGATED_VALUE_TRANSFER_MEMO
FEE_DELEGATED_VALUE_TRANSFER_MEMO_WITH_RATIO
SMART_CONTRACT_DEPLOY
FEE_DELEGATED_SMART_CONTRACT_DEPLOY
FEE_DELEGATED_SMART_CONTRACT_DEPLOY_WITH_RATIO
SMART_CONTRACT_EXECUTION
FEE_DELEGATED_SMART_CONTRACT_EXECUTION
FEE_DELEGATED_SMART_CONTRACT_EXECUTION_WITH_RATIO
CANCEL
FEE_DELEGATED_CANCEL
FEE_DELEGATED_CANCEL_WITH_RATIO
FEE_PAYER
result: (Bool) true
if successful, false
if error occurred
txData: signed transaction
Example
This Function for:
.KLAYTN_ERC20
- klaytn erc20 token (krc20)
.KRC20_TESTNET
- kalytn testnet erc20 token
coinType: ethereum networks coin type
tokenTransaction: (KlaytnTokenTransation)klaytn token transaction parameter
result: (Bool) true
if successful, false
if error occurred
txData: signed transaction
Example
Name | Type | Description |
---|---|---|
addressPath
String
sign key path for klaytn transaction
nonce
String
account nonce for klaytn transaction
to
String
recipient's address of klaytn transaction
amount
String
amount of ether to be sent. ( wei unit value )
gasLimit
String
gas limit value of klaytn transaction
gasPrice
String
gas price for klaytn transaction
data
String
transaction data of klaytn transaction
chainId
UInt32
chain id
from
String
(optional) Signer's Address of klaytn transaction
tx_type
UInt8
(optional) Type of klaytn transaction
The default value is KlaytnType.LEGACY.rawValue
fee_ratio
UInt32
(optional)Fee Ratio of klaytn transaction
addressPath
String
sign key path for klaytn transaction
nonce
String
account nonce for klaytn transaction
to
String
recipient's address of klaytn transaction
amount
String
amount of ether to be sent. ( wei unit value )
gasLimit
String
gas limit value of klaytn transaction
gasPrice
String
gas price for klaytn transaction
data
String
transaction data of klaytn transaction
chainId
UInt32
chain id
tokenName
String
token name of contract for KLAYTN_ERC20
transaction
decimals
UInt32
decimals of contract for KLAYTN_ERC20
transaction
tokenSymbol
String
symbol of contract for KLAYTN_ERC20
transaction
from
String
(optional) Signer's Address of klaytn transaction
tx_type
UInt8
(optional) Type of klaytn transaction
The default value is KlaytnType.LEGACY.rawValue
fee_ratio
UInt32
(optional)Fee Ratio of klaytn transaction