Sign Message

Overview

The signMessage API is employed when more direct management of signatures is desired, bypassing higher-level APIs, and is particularly used in scenarios like the Ownership Account where the Arianee SDK is used for direct handling of signMessage and signTransaction functions.

Let's start 🚀

URL

To sign a message, use https://custody.arianee.com/{{client}}/{{network}}/wallet/signMessage.

POST - https://custody.arianee.com/{{client}}/{{network}}/wallet/signMessage

Body

FieldTypeMandatoryDescription
messageStringMessage to be signed.
{
    "message": "Message body"
}
curl --request POST \
     --url https://custody.arianee.com/client/mainnet/wallet/signMessage \
     --header 'accept: application/json; charset=utf-8' \
     --header 'authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXV...' \
     --header 'content-type: application/json' \
     --data '
{
  "message": "Message body"
}

Return Payload

Status CodeSuccessDescription
200trueThe message's signature is returned.
{
    "message": "Buy Smurfs NFT",
    "signature": "0xb6ba390e630a034de6b09a9c4ede9840172861b43636f074d5478a00fc3b0cd07bba9f24657b7dce8f21a92570eddc5fb8ae94028e3980e6e9ef061c1b0d09ea1c"
}