Ethereum & EVM compatible
getEthereumSignedTransaction
The D'CENT Android SDK provides functions for signing transaction of coins.
This function for :
ETHEREUM
(ETH) - ethereumETH_CLASSIC
(ETC) - ethereum classicETHEREUM_GOERLI
(ETHt) - etheruem goerliFLARE_COSTON
(CFLR) - flare network costonRSK
(RBTC)- rsk smart bitcoinRSK_TESTNET
(RBTCt) - rsk smart bitcoin testnetXDC
(XDC) - xdc networkXDC_APOTHEM
(XDCt) - xdc apothemBSC
(BNB) - binance smart chainBSC_TESTNET
(BNBt) - binance smart chain testnetPOLYGON
(MATIC) - polygonPOLYGON_TESTNET
(MATICt) - polygon testnetETH_CHAIN
- other evm networks
Parameters
Parameter | Type | Description |
---|---|---|
coinType |
| ethereum coin type. |
transaction | ethereum transaction parameters. |
class EthereumTransaction
Name | Type | Description |
---|---|---|
hdKeyPath |
| sign key path for ethereum transaction |
nonce |
| account nonce for ethereum transaction |
toAddr |
| recipient's address of ethereum transaction |
amount |
| amount of ether to be sent. ( WEI unit value ) |
gasLimit |
| gas limit value of ethereum transaction |
gasPrice |
| gas price for ethereum transaction |
data |
| transaction data of ethereum transaction |
chainId |
| chain id |
symbol |
| symbol of contract for ethereum transaction |
tx_type |
| (optional)Type of ethereum transaction |
max_priority_fpg |
| (optional)max_priority_fpg of ethereum transaction |
max_fee_per_gas |
| (optional)max_fee_per gas of ethereum transaction |
access_list |
| (optional)access_list of ethereum transaction |
Returns
String
- signed transaction.
Requirements
Refer to "D`CENT Firmware Update History" to determine which D'CENT Biometric Wallet versions are supported on each network.
Example
getTokenSignedTransaction
This function for :
ERC20
- ethereum erc20 tokenETC_ERC20
- ethereum classic erc20 tokenERC20_KOVAN
- etheruem kovan erc20 tokenERC20_ROPSTEN
- etheruem ropsten erc20 tokenERC20_GOERLI
- etheruem goerli erc20 tokenERC20_RINKEBY
- etheruem rinkeby erc20 tokenFRC20_COSTON
- flare network coston tokenRRC20
- rsk smart bitcoin tokenRRC20_TESTNET
- rsk smart bitcoin testnet tokenXRC20
- xdc xrc20 tokenXRC20_APOTHEM
- xdc apothem xrc20 tokenBSC_BEP20
- binance smart chain bep20 tokenBSC_BEP20_TESTNET
- binance smart chain bep20 testnet tokenPOLYGON_ERC20
- polygon erc20 tokenPOLYGON_ERC20_TESTNET
- polygon erc20 testnet tokenECH_ERC20
- other evm erc20 token
Parameters
Parameter | Type | Description |
---|---|---|
coinType |
| erc20 type. |
transaction | token transaction parameters. |
class TokenTransaction
Name | Type | Description |
---|---|---|
hdKeyPath |
| sign key path for ethereum transaction |
nonce |
| account nonce for ethereum transaction |
toAddr |
| address to send |
amount |
| amount of ETH to send |
gasLimit |
| gas limit value |
gasPrice |
| gas price for ethereum transaction |
tokenName |
| token name of contract for ERC20 transaction |
contractAddress |
| address of contract for ERC20 transaction |
decimals |
| decimals of contract for ERC20 transaction |
symbol |
| symbol of contract for ERC20 transaction |
chainId |
| chain id |
feeSymbol |
| symbol of fee Account for ERC20 transaction |
Returns
String
- signed transaction.
Requirements
Refer to "D`CENT Firmware Update History" to determine which D'CENT Biometric Wallet versions are supported on each network.
Example
getEthereumMessageSigned
Get the sign value of "EVM" message sign(personal_sign & signTypedData).
This function for :
ETHEREUM
(ETH) - ethereumETHEREUM_GOERLI
(ETHt) - etheruem goerliRSK
(RBTC)- rsk smart bitcoinRSK_TESTNET
(RBTCt) - rsk smart bitcoin testnetXDC
(XDC) - xdc networkXDC_APOTHEM
(XDCt) - xdc apothemBSC
(BNB) - binance smart chainBSC_TESTNET
(BNBt) - binance smart chain testnetPOLYGON
(MATIC) - polygonPOLYGON_TESTNET
(MATICt) - polygon testnetETH_CHAIN
- other evm networksKLAYTN
(KLAY) - klaytnKLAY_BAOBAB
(KLAYt) - klaytn baobab
Parameters
Parameter | Type | Description |
---|---|---|
coinType |
| coin type. |
transaction | ethereum message sign data parameters. | |
command |
| data sign command.( |
class EthMessageSignData
Name | Type | Description |
---|---|---|
hdKeyPath |
| sign key path for ethereum sign data transaction |
data |
| message for signing |
Returns
HashMap<String, String>
- signedData{address,sign}
Requirements
D'CENT Biometric Wallet version 1.3.0. or higher is required.
(for EIP-721) version 2.11.1. or higher is required.
Example(ethereum personal_sign)
Last updated