getContract

Get a specific contract information that meets the ERC721 standard.

Request

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

Response

{
"address": "0x273f7f8e6489682df756151f5525576e322d51a3",
"name": "MyCryptoHeroes:Hero",
"symbol": "MCHH",
"owners": "749",
"totalSupply": "15712"
}

Path Parameters

Name

Type

Description

contractAddress

string

The address of ERC721 contract

Query Parameters

Name

Type

Description

clientId

string

The id required for authentication

Response 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": "Not Supported Contract",
"code": 404
}
}

The types of error handled are as follows.

code

message

description

404

Not Supported Contract

Occurs when requesting a not supported contract

404

Unauthorized user

Occurs when requesting with an unregistered clientId

400

Invalid parameter [value] in [parameter]

Occurs when requesting with an invalid parameter.