solSignTransaction
Solana: Sign transaction
Asks the device to sign the given transaction using the private key derived from the given BIP32 path. The user is asked to confirm all transaction details on Ukey Wallet.
const result = await HardwareSDK.solSignTransaction(
connectId,
deviceId,
params,
);
Params
path- requiredstring | Array<number>length is4for this special chain. read morerawTx- requiredstringserialized transaction string.
Examples
const rawTx =
"4301355cc18d85809872bcbd63cb6ea5ac3c2814a1bacf2e50d8ec62367211917b79ecd1f1a98fa0d793d7cb92ebd9a479dc6aba0ae8570253aa87c0da32db5ed2bd401f3bbee52c2bc55761fd8486fae2e28f46499282f4267b8b90fc8c1cc97bb659b6cc927f2ec1701ef2928ddb84759ba5c557f549db";
const response = await HardwareSDK.solSignTransaction(connectId, deviceId, {
path: "m/44'/501'/1'/0'",
rawTx: rawTx,
});
Result
{
success: true,
payload: {
path: "m/44'/501'/1'/0'",
signature: string.
}
}
Error
{
success: false,
payload: {
error: string, // error message
code: number // error code
}
}