aptosSignTransaction
Use requirement
- Firmware version required
- UKey Lite 24 / UKey Lite 25: 1.1.0
- UKey Core 26: 1.1.0
Aptos: Sign transaction
Asks device to sign given transaction using the private key derived by given BIP32 path. User is asked to confirm all transaction details on Ukey Wallet.
const result = await HardwareSDK.aptosSignTransaction(
connectId,
deviceId,
params,
);
Params
path- requiredstring | Array<number>minimum length is3. read morerawTx- requiredstringtype of serialized transaction string.
Examples
const rawTx =
"5201468ad19e9621a873c4de74dc7fb6bd4d3925b2cbe163f1e9fd73478322a28c8afde2034b9a10e8a4f8dc03fcfb58ad7a7cbc1bf9681364bb98d1eb43ec7af4ce51204acf063d4de66872ae95970bf3f39457ba3d7183f769c1ad08dd2fa6cd8707ed184a13fd38112f3a4ce9586ab68d4ea66a8f652ec";
const response = await HardwareSDK.aptosSignTransaction(connectId, deviceId, {
path: "m/44'/637'/1'/0'/0'",
rawTx: rawTx,
});
Result
{
success: true,
payload: {
path: "m/44'/637'/1'/0'/0'",
public_key: string,
signature: string.
}
}
Error
{
success: false,
payload: {
error: string, // error message
code: number // error code
}
}