> 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/tronapi.md).

# \TronApi

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

| Method                                                | HTTP request                         | Description |
| ----------------------------------------------------- | ------------------------------------ | ----------- |
| [**create\_tron\_account**](#create_tron_account)     | **POST** /tron                       |             |
| [**get\_tron\_account**](#get_tron_account)           | **GET** /tron/{accountName}          |             |
| [**list\_tron\_accounts**](#list_tron_accounts)       | **GET** /tron                        |             |
| [**sign\_tron\_transaction**](#sign_tron_transaction) | **POST** /tron/{accountName}/sign-tx |             |

## create\_tron\_account

> crate::models::AccountApiResponse create\_tron\_account(authorization, tron\_input)

### Parameters

| Name              | Type                                     | Description | Required    | Notes |
| ----------------- | ---------------------------------------- | ----------- | ----------- | ----- |
| **authorization** | **String**                               |             | \[required] |       |
| **tron\_input**   | [**TronInput**](/sdks/rust/troninput.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/tronapi.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\_tron\_account

> crate::models::AccountApiResponse get\_tron\_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/tronapi.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\_tron\_accounts

> crate::models::AccountApiResponse list\_tron\_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/tronapi.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\_tron\_transaction

> crate::models::TronApiResponse sign\_tron\_transaction(authorization, account\_name, tron\_transaction\_input)

### Parameters

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

### Return type

[**crate::models::TronApiResponse**](https://github.com/moon-up/docs-sdk/blob/main/rust/docs/TronAPIResponse.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/tronapi.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)
