Skip to content

Latest commit

 

History

History
65 lines (45 loc) · 2 KB

ENSApi.md

File metadata and controls

65 lines (45 loc) · 2 KB

moonsdk.api.ENSApi

Load the API package

import 'package:moonsdk/api.dart';

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

Method HTTP request Description
resolve POST /ens/resolve

resolve

EnsResolveAPIResponse resolve(authorization, ensResolveInput)

Example

import 'package:moonsdk/api.dart';
// TODO Configure API key authorization: ApiKeyAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: BearerAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('BearerAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('BearerAuth').apiKeyPrefix = 'Bearer';

final api = Moonsdk().getENSApi();
final String authorization = authorization_example; // String | 
final EnsResolveInput ensResolveInput = ; // EnsResolveInput | 

try {
    final response = api.resolve(authorization, ensResolveInput);
    print(response);
} catch on DioException (e) {
    print('Exception when calling ENSApi->resolve: $e\n');
}

Parameters

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]