githubEdit

Cosmos

get

Lists Cosmos accounts associated with the provided authorization token.

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

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

application/json
get
/cosmos
200

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

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
chevron-right
200

A promise that resolves to a CosmosAccountAPIResponse object.

application/json
post
/cosmos
200

A promise that resolves to a CosmosAccountAPIResponse object.

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
chevron-right
200

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

application/json
get
/cosmos/{accountName}
200

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

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
chevron-right
200

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

application/json
delete
/cosmos/{accountName}
200

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