Using Explorer EndPoints

This page describes endpoints of harmony explorer to programmatically access the data.

get
List all HRC20 tokens

https://explorer-v2-api.hmny.io/v0/erc20//v0/erc20/
Request
Response
Request
Path Parameters
optional
string
​
Response
200: OK
​

get
List all HRC721 tokens

https://explorer-v2-api.hmny.io/v0/erc721/
Request
Response
Request
Path Parameters
optional
string
​
Response
200: OK
​

get
List all HRC1155 tokens

https://explorer-v2-api.hmny.io/v0/erc1155
Request
Response
Request
Path Parameters
optional
string
​
Response
200: OK
​

get
HRC20 Balance of an address

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
Request
Response
Request
Path Parameters
token_addr
optional
string
HRC20 token address
Response
200: OK
​

get
HRC721/1155 Balance of an address

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
Request
Response
Request
Path Parameters
optional
string
HRC20 token address
Response
200: OK
​

get
ONE-USDT Price

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
Request
Response
Request
Path Parameters
optional
string
​
Response
200: OK
​

get
All Transactions

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
Request
Response
Request
Path Parameters
shard_id
optional
string
shard id
address
optional
string
hex address
Response
200: OK
​

get
HRC20 Transactions

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
Request
Response
Request
Path Parameters
optional
string
​
Response
200: OK
​

get
NFT (HRC721/HRC1155) Transactions

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
Request
Response
Request
Path Parameters
shard_id
optional
string
shard id
token_addr
optional
string
HRC721/HRC1155 token contract address
Response
200: OK
​

get
Logs

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
Request
Response
Request
Path Parameters
shard_id
optional
string
shard id
txn_hash
optional
string
transaction hash
Response
200: OK
​

get
Token Holders

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
Request
Response
Request
Path Parameters
Token Address
optional
string
​
Response
200: OK
[
{"ownerAddress":"0xeb049f1ed546f8efc3ad57f6c7d22f081ccc7375","tokenAddress":"0xcf664087a5bb0237a0bad6742852ec6c8d69a27a","balance":"84198183077703161163395138","needUpdate":false,"lastUpdateBlockNumber":null}
...
]
​

​