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

Cosmos

get

Lists Cosmos accounts associated with the provided authorization token.

Authorizations
AuthorizationstringRequired
Header parameters
AuthorizationstringRequired
  • The authorization token from the request header.
Responses
200

A promise that resolves to a CosmosAccountListAPIResponse object containing the list of accounts.

application/json

Represents the response from the Cosmos Account List API.

successbooleanRequired

Indicates whether the API request was successful.

messagestringRequired

A message providing additional information about the API response.

get/cosmos
GET /cosmos HTTP/1.1
Host: beta.usemoon.ai/
Authorization: text
Accept: */*
200

A promise that resolves to a CosmosAccountListAPIResponse object containing the list of accounts.

{
  "success": true,
  "message": "text",
  "data": {
    "data": {
      "keys": [
        {
          "address": "text",
          "pubkey": "text"
        }
      ]
    }
  }
}
post

Creates a new Cosmos account.

Authorizations
AuthorizationstringRequired
Header parameters
AuthorizationstringRequired
  • The authorization token from the request header.
Body
  • The request body containing optional network information.
networkstringOptional
Responses
200

A promise that resolves to a CosmosAccountAPIResponse object.

application/json

Represents the response from the Cosmos Account API.

successbooleanRequired

Indicates whether the API request was successful.

messagestringRequired

A message providing additional information about the API response.

post/cosmos
POST /cosmos HTTP/1.1
Host: beta.usemoon.ai/
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 18

{
  "network": "text"
}
200

A promise that resolves to a CosmosAccountAPIResponse object.

{
  "success": true,
  "message": "text",
  "data": {
    "data": {
      "address": "text"
    }
  }
}
get

Retrieves account information from the Cosmos SDK.

Authorizations
AuthorizationstringRequired
Path parameters
accountNamestringRequired
  • The name of the account to retrieve.
Header parameters
AuthorizationstringRequired
  • The authorization token provided in the request header.
Responses
200

A promise that resolves to a CosmosAccountAPIResponse object containing the account data.

application/json

Represents the response from the Cosmos Account API.

successbooleanRequired

Indicates whether the API request was successful.

messagestringRequired

A message providing additional information about the API response.

get/cosmos/{accountName}
GET /cosmos/{accountName} HTTP/1.1
Host: beta.usemoon.ai/
Authorization: text
Accept: */*
200

A promise that resolves to a CosmosAccountAPIResponse object containing the account data.

{
  "success": true,
  "message": "text",
  "data": {
    "data": {
      "address": "text"
    }
  }
}
delete

Deletes an account in the Cosmos SDK.

Authorizations
AuthorizationstringRequired
Path parameters
accountNamestringRequired
  • The name of the account to be deleted.
Header parameters
AuthorizationstringRequired
  • The authorization token provided in the request header.
Responses
200

A promise that resolves to a BaseCosmosAPIResponse indicating the success or failure of the operation.

application/json

Represents the base structure of a response from the Cosmos API.

successbooleanRequired

Indicates whether the API request was successful.

messagestringRequired

A message providing additional information about the API response.

delete/cosmos/{accountName}
DELETE /cosmos/{accountName} HTTP/1.1
Host: beta.usemoon.ai/
Authorization: text
Accept: */*
200

A promise that resolves to a BaseCosmosAPIResponse indicating the success or failure of the operation.

{
  "success": true,
  "message": "text"
}