Cosmos
Lists Cosmos accounts associated with the provided authorization token.
- The authorization token from the request header.
A promise that resolves to a CosmosAccountListAPIResponse object containing the list of accounts.
Represents the response from the Cosmos Account List API.
Indicates whether the API request was successful.
A message providing additional information about the API response.
GET /cosmos HTTP/1.1
Host: beta.usemoon.ai/
Authorization: text
Accept: */*
A promise that resolves to a CosmosAccountListAPIResponse object containing the list of accounts.
{
"success": true,
"message": "text",
"data": {
"data": {
"keys": [
{
"address": "text",
"pubkey": "text"
}
]
}
}
}Creates a new Cosmos account.
- The authorization token from the request header.
- The request body containing optional network information.
A promise that resolves to a CosmosAccountAPIResponse object.
Represents the response from the Cosmos Account API.
Indicates whether the API request was successful.
A message providing additional information about the API response.
POST /cosmos HTTP/1.1
Host: beta.usemoon.ai/
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 18
{
"network": "text"
}A promise that resolves to a CosmosAccountAPIResponse object.
{
"success": true,
"message": "text",
"data": {
"data": {
"address": "text"
}
}
}Retrieves account information from the Cosmos SDK.
- The name of the account to retrieve.
- The authorization token provided in the request header.
A promise that resolves to a CosmosAccountAPIResponse object containing the account data.
Represents the response from the Cosmos Account API.
Indicates whether the API request was successful.
A message providing additional information about the API response.
GET /cosmos/{accountName} HTTP/1.1
Host: beta.usemoon.ai/
Authorization: text
Accept: */*
A promise that resolves to a CosmosAccountAPIResponse object containing the account data.
{
"success": true,
"message": "text",
"data": {
"data": {
"address": "text"
}
}
}Deletes an account in the Cosmos SDK.
- The name of the account to be deleted.
- The authorization token provided in the request header.
A promise that resolves to a BaseCosmosAPIResponse indicating the success or failure of the operation.
Represents the base structure of a response from the Cosmos API.
Indicates whether the API request was successful.
A message providing additional information about the API response.
DELETE /cosmos/{accountName} HTTP/1.1
Host: beta.usemoon.ai/
Authorization: text
Accept: */*
A promise that resolves to a BaseCosmosAPIResponse indicating the success or failure of the operation.
{
"success": true,
"message": "text"
}