Cosmos
get
Lists Cosmos accounts associated with the provided authorization token.
Authorizations
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
get
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
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
post
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
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
get
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
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
delete
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"
}