Sign message
post
Signs a message using the Cosmos SDK.
Authorizations
Path parameters
accountNamestringRequired
- The name of the account to sign the message for.
Header parameters
AuthorizationstringRequired
- The authorization token from the request header.
Body
- The input data required to sign the message.
messagestringRequired
The address of the account signing the message.
Responses
200
A promise that resolves to a `CosmosSignedMessageAPIResponse` object containing the signed message data.
application/json
post
POST //cosmos/{accountName}/sign-message HTTP/1.1
Host: beta.usemoon.ai
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 18
{
"message": "text"
}
200
A promise that resolves to a CosmosSignedMessageAPIResponse
object containing the signed message data.
{
"success": true,
"message": "text",
"data": {
"signedMessage": "text"
}
}