confluxSignTransaction

Use requirement

  • Firmware version required

    • Touch: 3.0.0

    • Classic/Mini: 2.4.0

Conflux: Sign transaction

Asks device to sign given transaction. User is asked to confirm all transaction details on OneKey.

const response = await HardwareSDK.confluxSignTransaction(connectId, deviceId, params)

Params

Optional common params

  • path - required string | Array<number> minimum length is 3. read more

  • transaction - required ConfluxTransaction type

    • to - required string of address hex string

    • value - required string of amount convert to BigInt hex string

    • gasLimit - required string of gas limit convert to BigInt hex string

    • gasPrice - required string of gas price convert to BigInt hex string

    • nonce - required string of nonce convert to BigInt hex string

    • epochHeight - required string of epoch height convert to BigInt hex string

    • storageLimit - required string of storage limit convert to BigInt hex string

    • chainId - required number of the id of the chain

    • data - optional string of hex data

Example

Result

Error

Last updated

Was this helpful?