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
path- requiredstring | Array<number>minimum length is3. read moretransaction- requiredConfluxTransactiontypeto- requiredstringof address hex stringvalue- requiredstringof amount convert to BigInt hex stringgasLimit- requiredstringof gas limit convert to BigInt hex stringgasPrice- requiredstringof gas price convert to BigInt hex stringnonce- requiredstringof nonce convert to BigInt hex stringepochHeight- requiredstringof epoch height convert to BigInt hex stringstorageLimit- requiredstringof storage limit convert to BigInt hex stringchainId- requirednumberof the id of the chaindata- optionalstringof hex data
Example
Result
Error
Last updated
Was this helpful?