Supports both EIP-1559 and Legacy transactions. (But make sure that the RPC node you are using supports the type you are using)
Asks device to sign given transaction using the private key derived by given BIP32 path. User is asked to confirm all transaction details on OneKey.
const result = await HardwareSDK.evmSignTransaction(connectId, deviceId, params);
Params
path — requiredstring | Array<number> minimum length is 3.
transaction - requiredObject type of EthereumTransactionEIP1559|EthereumSignTransaction "0x" prefix for each field is optional
chainId - optionalnumber The ChainId in ETH is a unique identifier for a specific Ethereum network, used to distinguish different versions of the blockchain. .
Examples
EIP1559 ()
If both parameters maxFeePerGas and maxPriorityFeePerGas are defined, transaction will be signed as the new type introduced in .