\OneinchAPI
Method
HTTP request
Description
ApproveCallData
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/moon-up/moon-sdk-go"
)
func main() {
body := interface{}(987) // interface{} |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OneinchAPI.ApproveCallData(context.Background()).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OneinchAPI.ApproveCallData``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ApproveCallData`: interface{}
fmt.Fprintf(os.Stdout, "Response from `OneinchAPI.ApproveCallData`: %v\n", resp)
}Path Parameters
Other Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
ApproveSpender
Example
Path Parameters
Other Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
Protocols
Example
Path Parameters
Other Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
Quote
Example
Path Parameters
Other Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
Swap
Example
Path Parameters
Name
Type
Description
Notes
Other Parameters
Return type
Authorization
HTTP request headers
Tokens
Example
Path Parameters
Other Parameters
Name
Type
Description
Notes