Ethereum & EVM compatible
getEthereumSignedTransaction
The D'CENT Android SDK provides functions for signing transaction of coins.
This function for :
.ETHEREUM
- ethereum (ETH).ETH_CLASSIC
- ethereum classic (ETC).ETH_KOVAN
- ethereum kovan (ETHt).ETH_ROPSTEN
- ethereum ropsten (ETHt).ETH_GOERLI
- ethereum goerli (ETHt).ETH_RINKEBY
- ethereum rinkeby (ETHt).FLR_COSTON
- flare network coston (CFLR).RSK
- rsk smart bitcoin (RBTC).RSK_TESTNET
- rsk smart bitcoin testnet (RBTCt).XDC
- xcd network (XDC).XDC_APOTHEM
- xdc apothem (XDCt).BSC
- binance smart chain (BNB).BSC_TESTNET
- binance smart chain testnet (BNBt).POLYGON
- polygon (MATIC).POLYGON_TESTNET
- polygon testnet (MATICt).CHAN
- other evm networks
Parameters
coinType: ethereum networks coin type
ethereumTransaction: (EthereumTransation)ethereum transaction parameter
class EthereumTransaction
Name | Type | Description |
---|---|---|
addressPath |
| sign key path for ethereum transaction |
nonce |
| account nonce for ethereum transaction |
to |
| 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 for ethereum transaction
symbol value used for evm chain ( |
txType |
| (optional)Type of ethereum transaction |
maxPriorityFpg |
| (optional)max_priority_fpg of ethereum transaction |
maxFeePerGas |
| (optional)max_fee_per gas of ethereum transaction |
accessList |
| (optional)access_list of ethereum transaction |
Returns
result: (Bool)
true
if successful,false
if error occurredtxData: 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 fuction for :
.ERC20
- ethereum erc20 token.ETC_ERC20
- ethereum classic erc20 token.ERC20_KOVAN
- ethereum kovan erc20 token(ETH.ERC20_ROPSTEN
- ethereum ropsten erc20 token.ERC20_GOERLI
- ethereum goerli erc20 token.ERC20_RINKEBY
- ethereum rinkeby erc20 token.FLR20_COSTON
- flare network coston token.RRC20
- rsk smart bitcoin rrc20 token.RRC20_TESTNET
- rsk smart bitcoin testnet rrc20 token.XRC20
- xcd network xrc20 token.XRC20_APOTHEM
- xdc apothem xrc20 token.BEP20
- binance smart chain bep20 token.BEP20_TESTNET
- binance smart chain testnet bep20 token.POLYGON_ERC20
- polygon erc20 token.POLY_ERC20_TEST
- polygon testnet erc20 token.CH20
- other evm networks erc20 token
Parameters
coinType: erc20 type
tokenTransaction: (TokenTransation)erc20 token transaction parameter
class TokenTransaction
Name | Type | Description |
---|---|---|
addressPath |
| sign key path for ethereum transaction |
nonce |
| account nonce for ethereum transaction |
to |
| 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 ERC20 transaction |
chainId |
| chain id |
symbol |
| symbol of fee account for ERC20 transaction |
tokenName |
| token name of contract for ERC20 transaction |
contractAddress |
| address of contract for ERC20 transaction |
decimals |
| decimals of contract for ERC20 transaction |
tokenSymbol |
| symbol of contract for ERC20 transaction |
Returns
result: (Bool)
true
if successful,false
if error occurredtxData: signed transaction
Requirements
Refer to "D`CENT Firmware Update History" to determine which D'CENT Biometric Wallet versions are supported on each network.
Example
getMessageSign
Get the sign value of "EVM" message sign(personal_sign & signTypedData).
This fuction for :
.ETHEREUM
- ethereum (ETH).ETH_CLASSIC
- ethereum classic (ETC). ??.ETH_KOVAN
- ethereum kovan (ETHt).ETH_ROPSTEN
- ethereum ropsten (ETHt).ETH_GOERLI
- ethereum goerli (ETHt).ETH_RINKEBY
- ethereum rinkeby (ETHt).FLR_COSTON
- flare network coston (CFLR) ??.RSK
- rsk smart bitcoin (RBTC).RSK_TESTNET
- rsk smart bitcoin testnet (RBTCt).XDC
- xcd network (XDC).XDC_APOTHEM
- xdc apothem (XDCt).BSC
- binance smart chain (BNB).BSC_TESTNET
- binance smart chain testnet (BNBt).POLYGON
- polygon (MATIC).POLYGON_TESTNET
- polygon testnet (MATICt).CHAN
- other evm networks.KLAYTN
- klaytn mainnet (KLAY).KLAYTN_TESTNET
- klaytn baobab (KLAYt)
Parameters
coinType: EVM coin type
messageSign: (MessageSign)evm message sign data parameter
isFull: (Bool)
true
for personal sign or the_sign of EVM /false
for signTypedDatt(EIP-721) of EVM
class MessageSign
Name | Type | Description |
---|---|---|
message |
| message for sigining |
key |
| sign key path for evm message sign |
Returns
result: (Bool)
true
if successful,false
if error occurredaddr: the address used to sign the data
sign: signed data
Example
Last updated