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: Buffer The request ID. uuid random

  • signData: Buffer The data to be signed.

  • dataType: DataType The type of signing data.

  • chainId: number The chain ID. optional

  • derivationPath: CryptoKeypath The derivation path.

  • address: Buffer The address for request this signing. optional

  • origin: string Source 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.

ETHSignature

Last updated

Was this helpful?