\OneinchApi

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

Method
HTTP request
Description

POST /oneinch/approve-call-data

POST /oneinch/approve-spender

POST /oneinch/protocols

POST /oneinch/quote

POST /oneinch/{accountName}/swap

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

Authorization

ApiKeyAuth, BearerAuth

HTTP request headers

  • Content-Type: application/json

  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

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

Authorization

ApiKeyAuth, BearerAuth

HTTP request headers

  • Content-Type: application/json

  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

protocols

serde_json::Value protocols(body)

Parameters

Name
Type
Description
Required
Notes

body

Option<serde_json::Value>

[required]

Return type

serde_json::Value

Authorization

ApiKeyAuth, BearerAuth

HTTP request headers

  • Content-Type: application/json

  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

quote

serde_json::Value quote(body)

Parameters

Name
Type
Description
Required
Notes

body

Option<serde_json::Value>

[required]

Return type

serde_json::Value

Authorization

ApiKeyAuth, BearerAuth

HTTP request headers

  • Content-Type: application/json

  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

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

[required]

Return type

serde_json::Value

Authorization

ApiKeyAuth, BearerAuth

HTTP request headers

  • Content-Type: application/json

  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

tokens

serde_json::Value tokens(body)

Parameters

Name
Type
Description
Required
Notes

body

Option<serde_json::Value>

[required]

Return type

serde_json::Value

Authorization

ApiKeyAuth, BearerAuth

HTTP request headers

  • Content-Type: application/json

  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

Last updated