nervosSignTransaction
Nervos: sign transaction
Signs the given Nervos transaction with the private key derived by given BIP32 path. User is asked to confirm the transaction details on OneKey.
const result = await HardwareSDK.nervosSignTransaction(connectId, deviceId, params);Use requirement
Firmware version required
Touch: 4.9.0
mini: 3.7.0
Parameters
connectId: string
Unique identifier for the connection
deviceId: string
Unique identifier for the hardware device
params: object
path:
string- BIP32 path (e.g. "m/44'/309'/0'/0/0") [required]rawTx:
string- Raw transaction data in hex format [required]witnessHex:
string- Witness data in hex format [required]network:
string- Network name (e.g. "ckb", "ckb_testnet") [required]
Example
Returns
Success response:
Error response:
Last updated
Was this helpful?