\ENSAPI

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

Method
HTTP request
Description

Resolve

Post /ens/resolve

Resolve

EnsResolveAPIResponse Resolve(ctx).Authorization(authorization).EnsResolveInput(ensResolveInput).Execute()

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/moon-up/moon-sdk-go"
)

func main() {
	authorization := "authorization_example" // string | 
	ensResolveInput := *openapiclient.NewEnsResolveInput("Domain_example", "ChainId_example") // EnsResolveInput | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ENSAPI.Resolve(context.Background()).Authorization(authorization).EnsResolveInput(ensResolveInput).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ENSAPI.Resolve``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `Resolve`: EnsResolveAPIResponse
	fmt.Fprintf(os.Stdout, "Response from `ENSAPI.Resolve`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiResolveRequest struct via the builder pattern

Name
Type
Description
Notes

authorization

string

ensResolveInput

EnsResolveInput

Return type

EnsResolveAPIResponse

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]