# OctaCore.ENSApi

All URIs are relative to *https://api.octacore.io*

Method | HTTP request | Description
------------- | ------------- | -------------
[**ensResolvePost**](ENSApi.md#ensResolvePost) | **POST** /ensResolve | ensResolve
[**ensReverseResolvePost**](ENSApi.md#ensReverseResolvePost) | **POST** /ensReverseResolve | ensReverseResolve


<a name="ensResolvePost"></a>
# **ensResolvePost**
> ensResolvePost(input)

ensResolve

The /ensResolve API endpoint allows you to retrieve the blockchain address associated with a given Ethereum Name Service (ENS) domain. ENS is a decentralized platform that allows users to assign human-readable names to Ethereum addresses, making it easier to send transactions and interact with smart contracts. ### Use cases: + Resolving ENS domains on a wallet or exchange platform. + Allowing a user to lookup the address associated with an ENS domain within a decentralized application.

### Example
```javascript
var OctaCore = require('octa_core');
var defaultClient = OctaCore.ApiClient.instance;

// Configure API key authorization: JWT
var JWT = defaultClient.authentications['JWT'];
JWT.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//JWT.apiKeyPrefix = 'Token';

var apiInstance = new OctaCore.ENSApi();

var input = new OctaCore.ModelsDomainReq(); // ModelsDomainReq | Address


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.ensResolvePost(input, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **input** | [**ModelsDomainReq**](ModelsDomainReq.md)| Address | 

### Return type

null (empty response body)

### Authorization

[JWT](../README.md#JWT)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

<a name="ensReverseResolvePost"></a>
# **ensReverseResolvePost**
> ensReverseResolvePost(input)

ensReverseResolve

The /ensReverseResolve API endpoint allows you to retrieve the Ethereum Name Service (ENS) domain associated with a given blockchain address. ENS is a decentralized platform that allows users to assign human-readable names to Ethereum addresses, making it easier to send transactions and interact with smart contracts. ### Use cases: + Reverse resolving addresses on a wallet or exchange platform. + Allowing a user to lookup the ENS domain associated with an address within a decentralized application.

### Example
```javascript
var OctaCore = require('octa_core');
var defaultClient = OctaCore.ApiClient.instance;

// Configure API key authorization: JWT
var JWT = defaultClient.authentications['JWT'];
JWT.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//JWT.apiKeyPrefix = 'Token';

var apiInstance = new OctaCore.ENSApi();

var input = new OctaCore.ModelsAddressReq(); // ModelsAddressReq | Address


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.ensReverseResolve(input, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **input** | [**ModelsAddressReq**](ModelsAddressReq.md)| Address | 

### Return type

null (empty response body)

### Authorization

[JWT](../README.md#JWT)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

