getAllContracts

Get a list of all contracts that meet the ERC721 standard.

Request

curl -X GET http://eth-mainnet.api.henesis.io/nft/v1/contracts?clientId=<clientId>

Response

[
{
"address": "0x273f7f8e6489682df756151f5525576e322d51a3",
"name": "MyCryptoHeroes:Hero",
"symbol": "MCHH",
"owners": "851",
"totalSupply": "17592"
},
...
{
"address": "0xdceaf1652a131f32a821468dc03a92df0edd86ea",
"name": "MyCryptoHeroes:Extension",
"symbol": "MCHE",
"owners": "1390",
"totalSupply": "28187"
}
]

Path Parameters

Name

Type

Description

clientId

string

The id required for authentication

Query Parameters

Name

Type

Description

clientId

string

The id required for authentication

Response Fields

It returns the array of NFT smart contracts, and each smart contract has the following fields:

Name

Type

Description

address

string

The address of ERC721 contract

name

string

The name of ERC721 contract

symbol

string

The symbol of ERC721 token

owners

string

The number of unique ERC721 token holders

totalSupply

string

The totalSupply of ERC721 token

Errors

If an error occurs, the following message is returned.

{
"error": {
"message": "Unauthorized user",
"code": 401
}
}

The types of error handled are as follows.

code

message

description

401

Unauthorized user

Occurs when requesting with an unregistered clientId