\OneinchAPI
All URIs are relative to https://beta.usemoon.ai
ApproveCallData
Post /oneinch/approve-call-data
ApproveSpender
Post /oneinch/approve-spender
Protocols
Post /oneinch/protocols
Quote
Post /oneinch/quote
Swap
Post /oneinch/{accountName}/swap
Tokens
Post /oneinch/tokens
ApproveCallData
interface{} ApproveCallData(ctx).Body(body).Execute()
Example
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiApproveCallDataRequest struct via the builder pattern
body
interface{}
Return type
interface{}
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]
ApproveSpender
interface{} ApproveSpender(ctx).Body(body).Execute()
Example
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiApproveSpenderRequest struct via the builder pattern
body
interface{}
Return type
interface{}
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
interface{} Protocols(ctx).Body(body).Execute()
Example
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiProtocolsRequest struct via the builder pattern
body
interface{}
Return type
interface{}
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
interface{} Quote(ctx).Body(body).Execute()
Example
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiQuoteRequest struct via the builder pattern
body
interface{}
Return type
interface{}
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
interface{} Swap(ctx, accountName).Authorization(authorization).GetSwapDto(getSwapDto).Execute()
Example
Path Parameters
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
accountName
string
Other Parameters
Other parameters are passed through a pointer to a apiSwapRequest struct via the builder pattern
authorization | string | | getSwapDto | GetSwapDto | |
Return type
interface{}
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
interface{} Tokens(ctx).Body(body).Execute()
Example
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiTokensRequest struct via the builder pattern
body
interface{}
Return type
interface{}
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]