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
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
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
Returns
result: (Bool)
true
if successful,false
if error occurredaddr: the address used to sign the data
sign: signed data
Example
Last updated