For the complete documentation index, see llms.txt. This page is also available as Markdown.

Sign message

post

Signs a message using the Cosmos SDK.

Authorizations
AuthorizationstringRequired
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

Represents the response from the Cosmos Signed Message API.

successbooleanRequired

Indicates whether the API request was successful.

messagestringRequired

A message providing additional information about the API response.

post/cosmos/{accountName}/sign-message
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"
  }
}