On this page
solSignOffchainMessage
Sign a Solana off-chain message. The SDK implements this method for Protocol V1 and V2 through the same public API. Confirm firmware support on the device models used by your integration.
const response = await HardwareSDK.solSignOffchainMessage(connectId, deviceId, {
path: "m/44'/501'/0'/0'",
messageHex: '68656c6c6f', // hex of the off-chain payload
});Params
path- requiredstring | number[]Solana path, fully hardenedmessageHex- requiredstringhex-encoded off-chain messagemessageVersion- optionalSolanaOffChainMessageVersionenummessageFormat- optionalSolanaOffChainMessageFormatenumapplicationDomainHex- optionalstring32-byte hex application domainrequiredSigners- optionalstring[]32-byte hex public keys, strictly sorted and unique
Result
{
success: true,
payload: {
signature: string,
pub?: string,
}
}Pro 2 / Neo use Protocol V2 internally. Do not branch this call on device model.
See also: solSignTransaction
Last updated on