# OctaCore.NFTApi

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

Method | HTTP request | Description
------------- | ------------- | -------------
[**getNFTByIdPost**](NFTApi.md#getNFTByIdPost) | **POST** /getNFTById | getNFTById
[**getNFTMetadataPost**](NFTApi.md#getNFTMetadataPost) | **POST** /getNFTMetadata | getNFTMetadata
[**getNFTOwnerPost**](NFTApi.md#getNFTOwnerPost) | **POST** /getNFTOwner | getNFTOwner
[**getNFTsForCollectionPost**](NFTApi.md#getNFTsForCollectionPost) | **POST** /getNFTsForCollection | getNFTsForCollection
[**getTokenMetadataPost**](NFTApi.md#getTokenMetadataPost) | **POST** /getTokenMetadata | getTokenMetadata
[**isColelctionOwnerPost**](NFTApi.md#isColelctionOwnerPost) | **POST** /isColelctionOwner | isColelctionOwner


<a name="getNFTByIdPost"></a>
# **getNFTByIdPost**
> getNFTByIdPost(chain, input)

getNFTById

The /getNFTById API endpoint allows you to retrieve metadata about a specific non-fungible token (NFT) on the Ethereum blockchain. Non-fungible tokens are unique digital assets that cannot be replaced or exchanged on a 1:1 basis, such as collectible items or in-game items. They are typically implemented using the ERC-721 standard. ### Use cases: + Displaying NFT metadata on a blockchain explorer. + Allowing a user to view NFT metadata within a decentralized application. + Building NFT marketplaces or other applications that rely on NFT metadata.

### 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.NFTApi();

var chain = "chain_example"; // String | Chain to be requested in.

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


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **chain** | **String**| Chain to be requested in. | 
 **input** | [**ModelsGetNFTRequestBody**](ModelsGetNFTRequestBody.md)| Contract Address | 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

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

<a name="getNFTMetadataPost"></a>
# **getNFTMetadataPost**
> getNFTMetadataPost(chain, input)

getNFTMetadata

The /getNFTMetadata API endpoint allows you to retrieve metadata about a specific non-fungible token (NFT) contract on the Ethereum blockchain. Non-fungible tokens are unique digital assets that cannot be replaced or exchanged on a 1:1 basis, such as collectible items or in-game items. They are typically implemented using the ERC-721 or ERC-1155 standards. ### Use cases: + Displaying NFT metadata on a blockchain explorer. + Verifying the authenticity of an NFT: By retrieving the metadata for an NFT contract, you can verify that it is the genuine contract for a particular NFT and not a fake or copied contract. + Researching NFT projects: If you are interested in learning more about different NFT projects, you can use the /getNFTMetadata endpoint to retrieve information about the NFT contract and get a better understanding of the project's goals and features. + Building NFT utilities: You can build tools or applications that use the /getNFTMetadata endpoint to provide users with useful information about NFT contracts, such as the total supply or the symbol. For example, you might build a portfolio tracker that helps users track their holdings of different NFTs, or you might build a price oracle that retrieves NFT metadata in order to provide real-time price information for different NFTs.

### 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.NFTApi();

var chain = "chain_example"; // String | Chain to be requested in.

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


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **chain** | **String**| Chain to be requested in. | 
 **input** | [**ModelsContractAdressRequestBody**](ModelsContractAdressRequestBody.md)| Contract Address | 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

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

<a name="getNFTOwnerPost"></a>
# **getNFTOwnerPost**
> getNFTOwnerPost(chain, input)

getNFTOwner

This endpoint takes a erc721 token address and token id as input and returns the owner Address for the NFT. The /getNFTOwner API endpoint allows you to retrieve the owner of a specific non-fungible token (NFT) on the Ethereum blockchain. Non-fungible tokens are unique digital assets that cannot be replaced or exchanged on a 1:1 basis, such as collectible items or in-game items. They are typically implemented using the ERC-721 standard. ### Use cases: + Displaying NFT ownership information on a blockchain explorer. + Allowing a user to view the owner of an NFT within a decentralized application. + Building NFT marketplaces or other applications that rely on NFT ownership information.

### 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.NFTApi();

var chain = "chain_example"; // String | Chain to be requested in.

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


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **chain** | **String**| Chain to be requested in. | 
 **input** | [**ModelsGetNFTRequestBody**](ModelsGetNFTRequestBody.md)| Contract Address | 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

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

<a name="getNFTsForCollectionPost"></a>
# **getNFTsForCollectionPost**
> getNFTsForCollectionPost(chain, input)

getNFTsForCollection

The /getNFTsForCollection API endpoint allows you to retrieve the list of non-fungible token (NFT) IDs that are associated with a specific NFT contract on the Ethereum blockchain. Non-fungible tokens are unique digital assets that cannot be replaced or exchanged on a 1:1 basis, such as collectible items or in-game items. They are typically implemented using the ERC-721 standard. ### Use cases: + Displaying a list of NFTs on a blockchain explorer. + Building NFT marketplaces: You can use the /getNFTsForCollection endpoint to build an NFT marketplace or exchange that allows users to browse and trade NFTs from a specific contract. + Creating NFT inventories: If you are building a decentralized application that involves the use of NFTs, you can use the /getNFTsForCollection endpoint to create an inventory of NFTs that are owned by a particular user or contract.

### 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.NFTApi();

var chain = "chain_example"; // String | Chain to be requested in.

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


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **chain** | **String**| Chain to be requested in. | 
 **input** | [**ModelsAddressReq**](ModelsAddressReq.md)| Contract Address | 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

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

<a name="getTokenMetadataPost"></a>
# **getTokenMetadataPost**
> getTokenMetadataPost(chain, input)

getTokenMetadata

This endpoint takes a erc20 token address as input and returns the metadata for the token The /getTokenMetadata API endpoint allows you to retrieve metadata about a specific ERC-20 token contract on the Ethereum blockchain. ERC-20 tokens are digital assets that are built on top of the Ethereum platform and follow a set of standard rules, making them easy to use and integrate with other applications. ### Use cases: + Displaying token metadata on a blockchain explorer. + Building token marketplaces or other applications that rely on token metadata. The response includes various metadata fields for the token contract, such as the name, symbol, number of decimals, and total supply. The specific fields that are included in the response may vary depending on how the token contract is implemented.

### 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.NFTApi();

var chain = "chain_example"; // String | Chain to be requested in.

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


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **chain** | **String**| Chain to be requested in. | 
 **input** | [**ModelsContractAdressRequestBody**](ModelsContractAdressRequestBody.md)| Contract Address | 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

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

<a name="isColelctionOwnerPost"></a>
# **isColelctionOwnerPost**
> isColelctionOwnerPost(chain, input)

isColelctionOwner

This endpoint takes a erc721/erc1155 token address, a account address as input and returns if the account address owns an NFT in the collection. For erc1155 also provide tokenID The /isCollectionOwner API endpoint allows you to check if a specific Ethereum address owns at least one non-fungible token (NFT) in a particular NFT contract. Non-fungible tokens are unique digital assets that cannot be replaced or exchanged on a 1:1 basis, such as collectible items or in-game items. They are typically implemented using the ERC-721 or ERC-1155 standards. ### Use cases: + Verifying NFT ownership within a decentralized application. + Building NFT marketplaces or other applications that rely on NFT ownership information.

### 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.NFTApi();

var chain = "chain_example"; // String | Chain to be requested in.

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


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **chain** | **String**| Chain to be requested in. | 
 **input** | [**ModelsGetIsCollectionOwnerRequestBody**](ModelsGetIsCollectionOwnerRequestBody.md)| Contract Address | 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

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

