Skip to Content
Hardware
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

Optional common params

  • path - required string | number[] Solana path, fully hardened
  • messageHex - required string hex-encoded off-chain message
  • messageVersion - optional SolanaOffChainMessageVersion enum
  • messageFormat - optional SolanaOffChainMessageFormat enum
  • applicationDomainHex - optional string 32-byte hex application domain
  • requiredSigners - optional string[] 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