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

# \AaveApi

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

| Method                                        | HTTP request                            | Description |
| --------------------------------------------- | --------------------------------------- | ----------- |
| [**borrow**](#borrow)                         | **POST** /aave/{name}/borrow            |             |
| [**lend**](#lend)                             | **POST** /aave/{name}/lend              |             |
| [**repay**](#repay)                           | **POST** /aave/{name}/repay             |             |
| [**user\_reserve\_data**](#user_reserve_data) | **POST** /aave/{name}/user-reserve-data |             |

## borrow

> crate::models::TransactionApiResponse borrow(authorization, name, aave\_input)

### Parameters

| Name              | Type                                     | Description | Required    | Notes |
| ----------------- | ---------------------------------------- | ----------- | ----------- | ----- |
| **authorization** | **String**                               |             | \[required] |       |
| **name**          | **String**                               |             | \[required] |       |
| **aave\_input**   | [**AaveInput**](/sdks/rust/aaveinput.md) |             | \[required] |       |

### Return type

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

## lend

> crate::models::TransactionApiResponse lend(authorization, name, aave\_input)

### Parameters

| Name              | Type                                     | Description | Required    | Notes |
| ----------------- | ---------------------------------------- | ----------- | ----------- | ----- |
| **authorization** | **String**                               |             | \[required] |       |
| **name**          | **String**                               |             | \[required] |       |
| **aave\_input**   | [**AaveInput**](/sdks/rust/aaveinput.md) |             | \[required] |       |

### Return type

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

## repay

> crate::models::TransactionApiResponse repay(authorization, name, aave\_input)

### Parameters

| Name              | Type                                     | Description | Required    | Notes |
| ----------------- | ---------------------------------------- | ----------- | ----------- | ----- |
| **authorization** | **String**                               |             | \[required] |       |
| **name**          | **String**                               |             | \[required] |       |
| **aave\_input**   | [**AaveInput**](/sdks/rust/aaveinput.md) |             | \[required] |       |

### Return type

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

## user\_reserve\_data

> crate::models::AaveReservesApiResponse user\_reserve\_data(authorization, name, aave\_input)

### Parameters

| Name              | Type                                     | Description | Required    | Notes |
| ----------------- | ---------------------------------------- | ----------- | ----------- | ----- |
| **authorization** | **String**                               |             | \[required] |       |
| **name**          | **String**                               |             | \[required] |       |
| **aave\_input**   | [**AaveInput**](/sdks/rust/aaveinput.md) |             | \[required] |       |

### Return type

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