---
title: "Sign Solana Message"
method: POST
path: "/v1/solana/sign-message"
tags: ["Solana"]
---

# Sign Solana Message

`POST /v1/solana/sign-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.

## Request body

- object — Request payload for signing an arbitrary Solana message.
  - `from` string, required — The Solana wallet address used for signing.
  - `message` string, required — Message to sign. Can be plain text or hexadecimal format (starting with 0x). The format is automatically detected.

## Response `200`

Message signed successfully. Returns the base58 signature.

- object
  - `result` object, required
    - `signature` string, required — Base58 encoded signature returned from the signer.

## Other responses

- `401` — Authentication required. Include x-secret-key or Authorization headers.
- `500` — Internal server error occurred while signing the message.

---

[API](https://skmtc.net/thirdweb/apis/thirdweb-api.md) · [All operations](https://skmtc.net/thirdweb/apis/thirdweb-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/thirdweb/thirdweb-api/revisions/fb4cb67da1c7/schema)
