Quick Start

Step 1: Install Henesis CLI

Installation

npm install -g @haechi-labs/henesis-cli

Login with your Henesis account

henesis login

Step 2: Check your Client ID through CLI

You can get client ID through Henesis CLI.​

henesis account:describe

Copy your <YOUR-CLIENT-ID> for the authentication.

Email: hello@haechi.io
Name: hello
Organization: haechi
clientId: <YOUR-CLIENT-ID>

Step 3: Try NFT API

You can use NFT API through curl command.

curl -X GET http://api.henesis.io/nft/v1/accounts/<accountAddress>/tokens?clientId=<clientId>&page=<page>&size=<size>&order_by=<order_by>&order_direction=<order_direction>&contractAddresses=<contractAddress1>,<contractAddress2>

If you request ERC721 token information through above api request, you can get the following response.

{
"data": [
{
"id": "40020079",
"owner": "0x138a35ee20e40f019e7e7c00386ab2ef42d66d1e",
"uri": "https://www.mycryptoheroes.net/metadata/hero/40020079",
"contract": {
"address": "0x273f7f8e6489682df756151f5525576e322d51a3",
"name": "MyCryptoHeroes:Hero",
"symbol": "MCHH",
"totalSupply": 15712
}
},
...
{
"id": "40060029",
"owner": "0x138a35ee20e40f019e7e7c00386ab2ef42d66d1e",
"uri": "https://www.mycryptoheroes.net/metadata/hero/40060029",
"contract": {
"address": "0x273f7f8e6489682df756151f5525576e322d51a3",
"name": "MyCryptoHeroes:Hero",
"symbol": "MCHH",
"totalSupply": 15712
}
}
],
"pagination": {
"prevUrl": "http://api.henesis.io/nft/v1/accounts/0x138a35ee20e40f019e7e7c00386ab2ef42d66d1e/tokens?page=0&size=15&order_by=transfer_block_number&order_direction=desc&contractAddresses=0x273f7f8e6489682df756151f5525576e322d51a3",
"nextUrl": "http://api.henesis.io/nft/v1/accounts/0x138a35ee20e40f019e7e7c00386ab2ef42d66d1e/tokens?page=2&size=15&order_by=transfer_block_number&order_direction=desc&contractAddresses=0x273f7f8e6489682df756151f5525576e322d51a3"
}
}