ETHSignRequest
The EthSignRequest class handles Ethereum signing requests.
Used to send a signing request to the device.
enum DataType {
transaction = 1, // For the legacy transaction, the rlp encoding of the unsigned data.
typedData = 2, // For the EIP-712 typed data. Bytes of the json string.
personalMessage = 3, // For the personal message signing.
typedTransaction = 4 // For the typed transaction, like the EIP-1559 transaction.
}Parameters
requestId:BufferThe request ID. uuid randomsignData:BufferThe data to be signed.dataType:DataTypeThe type of signing data.chainId:numberThe chain ID. optionalderivationPath:CryptoKeypathThe derivation path.address:BufferThe address for request this signing. optionalorigin:stringSource of the request. optional
URL Example
EIP‑1559 transaction (high‑level)
Legacy transaction (high‑level)
EIP‑712 TypedData (high‑level)
Message sign (high‑level)
Obtaining a signature requires viewing.
ETHSignatureLast updated
Was this helpful?