Sign Message
Before you begin
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 🚀
To sign a message, use https://custody.arianee.com/{{client}}/{{network}}/wallet/signMessage
.
Input | Mandatory | Type | Description |
---|---|---|---|
message | ✅ | String | Message to be signed. |
{
"message": "Message body"
}
Example:
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"
}
Result:
httpCode | Description |
---|---|
200 | The message's signature is returned. |
{
"message": "Buy Smurfs NFT",
"signature": "0xb6ba390e630a034de6b09a9c4ede9840172861b43636f074d5478a00fc3b0cd07bba9f24657b7dce8f21a92570eddc5fb8ae94028e3980e6e9ef061c1b0d09ea1c"
}
Updated about 1 year ago