Sign message
Signs an arbitrary message with the given Solana account.
WARNING: Never sign a message that you didn’t generate, as it can be an arbitrary transaction. For example, it might send all of your funds to an attacker.
Authorizations
A JWT signed using your CDP API Key Secret, encoded in base64. Refer to the Generate Bearer Token section of our Authentication docs for information on how to generate your Bearer Token.
Headers
A JWT signed using your Wallet Secret, encoded in base64. Refer to the Generate Wallet Token section of our Authentication docs for more details on how to generate your Wallet Token.
An optional string request header for making requests safely retryable. When included, duplicate requests with the same key will return identical responses. Refer to our Idempotency docs for more information on using idempotency keys.
1 - 128Path Parameters
The base58 encoded address of the Solana account.
^[1-9A-HJ-NP-Za-km-z]{32,44}$Body
The arbitrary message to sign.
"Hello, world!"
The encoding of the message. Use utf8 to sign the literal UTF-8 bytes of the message, or base64 to decode an RFC 4648 standard Base64 string before signing. Base64 input must use the standard + and / alphabet with = padding where required. If omitted, the message is interpreted as UTF-8.
utf8, base64 "utf8"
Response
Successfully signed message.
The signature of the message, as a base58 encoded string.
"4YecmNqVT9QFqzuSvE9Zih3toZzNAijjXpj8xupgcC6E4VzwzFjuZBk5P99yz9JQaLRLm1K4L4FpMjxByFxQBe2h"