Using Explorer EndPoints
This page describes endpoints of harmony explorer to programmatically access the data.
List all HRC20 tokens
GET
https://explorer-v2-api.hmny.io/v0/erc20//v0/erc20/
Path Parameters
Name | Type | Description |
---|---|---|
string |
List all HRC721 tokens
GET
https://explorer-v2-api.hmny.io/v0/erc721/
Path Parameters
Name | Type | Description |
---|---|---|
string |
List all HRC1155 tokens
GET
https://explorer-v2-api.hmny.io/v0/erc1155
Path Parameters
Name | Type | Description |
---|---|---|
string |
HRC20 Balance of an address
GET
https://explorer-v2-api.hmny.io/v0/erc20/address/:token_addr/balances
Get the HRC20 balance of an address.
https://explorer-v2-api.hmny.io/v0/erc20/address/0x8454bf4fc72687b61eaf1bcd64bb9e78983fbdd7/balances
Path Parameters
Name | Type | Description |
---|---|---|
token_addr | string | HRC20 token address |
HRC721/1155 Balance of an address
GET
https://explorer-v2-api.hmny.iov0/erc721/address/:token_addr/balances
Get the HRC721/HRC1155 balance of an address
https://explorer-v2-api.hmny.io/v0/erc721/address/0x847826f2d552c87d2ee6f38b65425fc85befe841/balances
Path Parameters
Name | Type | Description |
---|---|---|
string | HRC20 token address |
ONE-USDT Price
GET
https://explorer-v2-api.hmny.io/v0/price/actual/ONEUSDT
Get the price of ONE in USDT
Example:
https://explorer-v2-api.hmny.io/v0/price/actual/ONEUSDT
Path Parameters
Name | Type | Description |
---|---|---|
string |
All Transactions
GET
https://explorer-v2-api.hmny.io/v0/shard/:shard_id/address/:address/transactions/type/transaction?offset=0&limit=10
https://explorer-v2-api.hmny.io/v0/shard/0/address/0x7912111622cb6455156ceb8a4b17c8c2ce6e7dab/transactions/type/transaction?offset=0&limit=10
Path Parameters
Name | Type | Description |
---|---|---|
shard_id | string | shard id |
address | string | hex address |
HRC20 Transactions
GET
https://explorer-v2-api.hmny.io/v0/shard/:shard_id/address/0xdd46509b31b87f05a0da47e6ff9cdaa5563e7a57/transactions/type/erc20?offset=0&limit=10
Get all HRC20 transactions.
Example:
https://explorer-v2-api.hmny.io/v0/shard/0/address/0xdd46509b31b87f05a0da47e6ff9cdaa5563e7a57/transactions/type/erc20?offset=0&limit=10
Path Parameters
Name | Type | Description |
---|---|---|
string |
NFT (HRC721/HRC1155) Transactions
GET
https://explorer-v2-api.hmny.io//v0/shard/:shard_id/address/:token_addr/transactions/type/erc721?offset=0&limit=10
Get the transactions of an HRC721/HRC1155 token.
Example:
https://explorer-v2-api.hmny.io/v0/shard/0/address/0xe59a79c7516d22a488a3f479626e75a2e81aae66/transactions/type/erc721?offset=0&limit=10
Path Parameters
Name | Type | Description |
---|---|---|
shard_id | string | shard id |
token_addr | string | HRC721/HRC1155 token contract address |
Logs
GET
https://explorer-v2-api.hmny.io//v0/shard/:shard_id/logs/transaction/hash/:txn_hash
Get the event logs of a transaction.
Example:
https://explorer-v2-api.hmny.io/v0/shard/0/logs/transaction/hash/0x0d449c8dde6c13e63064f49c531ba028878a4de368473cdff421255000c8047f
Path Parameters
Name | Type | Description |
---|---|---|
shard_id | string | shard id |
txn_hash | string | transaction hash |
Token Holders
GET
https://explorer-v2-api.hmny.io/v0/erc20/token/:token_addr/holders?limit=100&offset=0
Get the list of token holders of an HRC20 token.
Example:
https://explorer-v2-api.hmny.io/v0/erc20/token/0xcf664087a5bb0237a0bad6742852ec6c8d69a27a/holders?limit=100&offset=0
Path Parameters
Name | Type | Description |
---|---|---|
Token Address | string |
Fetch contract information
GET
https://ctrver.t.hmny.io/fetchContractCode?contractAddress=
Query Parameters
Name | Type | Description |
---|---|---|
contractAddress* | String | Contract address |
Last updated