> For the complete documentation index, see [llms.txt](https://docs.usemoon.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.usemoon.ai/sdks/rust/cosmosapi.md).

# \CosmosApi

All URIs are relative to *<https://beta.usemoon.ai>*

| Method                                                    | HTTP request                           | Description |
| --------------------------------------------------------- | -------------------------------------- | ----------- |
| [**create\_cosmos\_account**](#create_cosmos_account)     | **POST** /cosmos                       |             |
| [**get\_cosmos\_account**](#get_cosmos_account)           | **GET** /cosmos/{accountName}          |             |
| [**list\_cosmos\_accounts**](#list_cosmos_accounts)       | **GET** /cosmos                        |             |
| [**sign\_cosmos\_transaction**](#sign_cosmos_transaction) | **POST** /cosmos/{accountName}/sign-tx |             |

## create\_cosmos\_account

> crate::models::AccountApiResponse create\_cosmos\_account(authorization, cosmos\_input)

### Parameters

| Name              | Type                                         | Description | Required    | Notes |
| ----------------- | -------------------------------------------- | ----------- | ----------- | ----- |
| **authorization** | **String**                                   |             | \[required] |       |
| **cosmos\_input** | [**CosmosInput**](/sdks/rust/cosmosinput.md) |             | \[required] |       |

### Return type

[**crate::models::AccountApiResponse**](https://github.com/moon-up/docs-sdk/blob/main/rust/docs/AccountAPIResponse.md)

### Authorization

[ApiKeyAuth](/sdks/rust.md#ApiKeyAuth), [BearerAuth](/sdks/rust.md#BearerAuth)

### HTTP request headers

* **Content-Type**: application/json
* **Accept**: application/json

[\[Back to top\]](/sdks/rust/cosmosapi.md) [\[Back to API list\]](/sdks/rust.md#documentation-for-api-endpoints) [\[Back to Model list\]](/sdks/rust.md#documentation-for-models) [\[Back to README\]](/sdks/rust.md)

## get\_cosmos\_account

> crate::models::AccountApiResponse get\_cosmos\_account(authorization, account\_name)

### Parameters

| Name              | Type       | Description | Required    | Notes |
| ----------------- | ---------- | ----------- | ----------- | ----- |
| **authorization** | **String** |             | \[required] |       |
| **account\_name** | **String** |             | \[required] |       |

### Return type

[**crate::models::AccountApiResponse**](https://github.com/moon-up/docs-sdk/blob/main/rust/docs/AccountAPIResponse.md)

### Authorization

[ApiKeyAuth](/sdks/rust.md#ApiKeyAuth), [BearerAuth](/sdks/rust.md#BearerAuth)

### HTTP request headers

* **Content-Type**: Not defined
* **Accept**: application/json

[\[Back to top\]](/sdks/rust/cosmosapi.md) [\[Back to API list\]](/sdks/rust.md#documentation-for-api-endpoints) [\[Back to Model list\]](/sdks/rust.md#documentation-for-models) [\[Back to README\]](/sdks/rust.md)

## list\_cosmos\_accounts

> crate::models::AccountApiResponse list\_cosmos\_accounts(authorization)

### Parameters

| Name              | Type       | Description | Required    | Notes |
| ----------------- | ---------- | ----------- | ----------- | ----- |
| **authorization** | **String** |             | \[required] |       |

### Return type

[**crate::models::AccountApiResponse**](https://github.com/moon-up/docs-sdk/blob/main/rust/docs/AccountAPIResponse.md)

### Authorization

[ApiKeyAuth](/sdks/rust.md#ApiKeyAuth), [BearerAuth](/sdks/rust.md#BearerAuth)

### HTTP request headers

* **Content-Type**: Not defined
* **Accept**: application/json

[\[Back to top\]](/sdks/rust/cosmosapi.md) [\[Back to API list\]](/sdks/rust.md#documentation-for-api-endpoints) [\[Back to Model list\]](/sdks/rust.md#documentation-for-models) [\[Back to README\]](/sdks/rust.md)

## sign\_cosmos\_transaction

> crate::models::CosmosApiResponse sign\_cosmos\_transaction(authorization, account\_name, cosmos\_transaction\_input)

### Parameters

| Name                           | Type                                                               | Description | Required    | Notes |
| ------------------------------ | ------------------------------------------------------------------ | ----------- | ----------- | ----- |
| **authorization**              | **String**                                                         |             | \[required] |       |
| **account\_name**              | **String**                                                         |             | \[required] |       |
| **cosmos\_transaction\_input** | [**CosmosTransactionInput**](/sdks/rust/cosmostransactioninput.md) |             | \[required] |       |

### Return type

[**crate::models::CosmosApiResponse**](https://github.com/moon-up/docs-sdk/blob/main/rust/docs/CosmosAPIResponse.md)

### Authorization

[ApiKeyAuth](/sdks/rust.md#ApiKeyAuth), [BearerAuth](/sdks/rust.md#BearerAuth)

### HTTP request headers

* **Content-Type**: application/json
* **Accept**: application/json

[\[Back to top\]](/sdks/rust/cosmosapi.md) [\[Back to API list\]](/sdks/rust.md#documentation-for-api-endpoints) [\[Back to Model list\]](/sdks/rust.md#documentation-for-models) [\[Back to README\]](/sdks/rust.md)
