v1

latestOpenAPI 3.1.02026-07-13570316.1 KB
Solana

Sign Solana Message

Sign an arbitrary message with a Solana wallet. Supports both text and hexadecimal message formats with automatic format detection.

Authentication: This endpoint requires backend authentication using the x-secret-key header. The secret key should never be exposed publicly.

post/v1/solana/sign-message

Request body

fromstring required

The Solana wallet address used for signing.

messagestring required

Message to sign. Can be plain text or hexadecimal format (starting with 0x). The format is automatically detected.

Example request

{
  "from": "8JBLmveV4YF5AQ7EVnKJgyj6etGgVkPp3tYqQMTu3p5B",
  "message": "Welcome to thirdweb"
}

Response

Message signed successfully. Returns the base58 signature.