# \OneinchApi All URIs are relative to *https://beta.usemoon.ai* Method | HTTP request | Description ------------- | ------------- | ------------- [**approve_call_data**](OneinchApi.md#approve_call_data) | **POST** /oneinch/approve-call-data | [**approve_spender**](OneinchApi.md#approve_spender) | **POST** /oneinch/approve-spender | [**protocols**](OneinchApi.md#protocols) | **POST** /oneinch/protocols | [**quote**](OneinchApi.md#quote) | **POST** /oneinch/quote | [**swap**](OneinchApi.md#swap) | **POST** /oneinch/{accountName}/swap | [**tokens**](OneinchApi.md#tokens) | **POST** /oneinch/tokens | ## approve_call_data > serde_json::Value approve_call_data(body) ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **body** | Option<**serde_json::Value**> | | [required] | ### Return type [**serde_json::Value**](serde_json::Value.md) ### Authorization [ApiKeyAuth](../README.md#ApiKeyAuth), [BearerAuth](../README.md#BearerAuth) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## approve_spender > serde_json::Value approve_spender(body) ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **body** | Option<**serde_json::Value**> | | [required] | ### Return type [**serde_json::Value**](serde_json::Value.md) ### Authorization [ApiKeyAuth](../README.md#ApiKeyAuth), [BearerAuth](../README.md#BearerAuth) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## protocols > serde_json::Value protocols(body) ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **body** | Option<**serde_json::Value**> | | [required] | ### Return type [**serde_json::Value**](serde_json::Value.md) ### Authorization [ApiKeyAuth](../README.md#ApiKeyAuth), [BearerAuth](../README.md#BearerAuth) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## quote > serde_json::Value quote(body) ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **body** | Option<**serde_json::Value**> | | [required] | ### Return type [**serde_json::Value**](serde_json::Value.md) ### Authorization [ApiKeyAuth](../README.md#ApiKeyAuth), [BearerAuth](../README.md#BearerAuth) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## swap > serde_json::Value swap(account_name, authorization, get_swap_dto) ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **account_name** | **String** | | [required] | **authorization** | **String** | | [required] | **get_swap_dto** | [**GetSwapDto**](GetSwapDto.md) | | [required] | ### Return type [**serde_json::Value**](serde_json::Value.md) ### Authorization [ApiKeyAuth](../README.md#ApiKeyAuth), [BearerAuth](../README.md#BearerAuth) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## tokens > serde_json::Value tokens(body) ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **body** | Option<**serde_json::Value**> | | [required] | ### Return type [**serde_json::Value**](serde_json::Value.md) ### Authorization [ApiKeyAuth](../README.md#ApiKeyAuth), [BearerAuth](../README.md#BearerAuth) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)