Overview

At IoTeX, we provide a powerful block explorer, IoTeXScan, which allows users and developers to easily query data on the IoTeX blockchain. To make it even easier for developers familiar with Ethereum tools, we’ve implemented the same Etherscan API on IoTeXScan. This guide provides a quick overview of how to get started with our IoTeXScan API and the available endpoints.

Getting Started

You can use IoTeXScan’s API just as you would use the Etherscan API. The API allows developers to retrieve blockchain data programmatically, such as transaction details, block information, account balances, and much more. Here are the key steps to start using the API: Base URL: https://dev.iotexscan.io/api API Key: To interact with the IoTeXScan API, no API key is required. However, queries are rate-limited to 1 request per second. Example endpoint:

Complete API

GET ?module=contract&action=getabi

GET ?module=contract&action=getcontractcreation

GET ?module=contract&action=getsourcecode

GET ?module=contract&action=checkverifystatus

GET ?module=proxy&action=eth_getTransactionByHash

GET ?module=proxy&action=eth_getTransactionByBlockNumberAndIndex

GET ?module=proxy&action=eth_getTransactionCount

GET ?module=proxy&action=eth_sendRawTransaction

GET ?module=proxy&action=eth_getTransactionReceipt

GET ?module=proxy&action=eth_call

GET ?module=proxy&action=eth_getCode

GET ?module=proxy&action=eth_getStorageAt

GET ?module=proxy&action=eth_gasPrice

GET ?module=proxy&action=eth_estimateGas

GET ?module=account&action=balance

GET ?module=account&action=balancemulti

GET ?module=account&action=txlist

GET ?module=account&action=txlistinternal

GET ?module=account&action=tokentx

GET ?module=account&action=tokennfttx

GET ?module=account&action=token1155tx

GET ?module=account&action=tokenbalance

GET ?module=account&action=tokensupplyhistory

GET ?module=account&action=tokenbalancehistory

GET ?module=account&action=addresstokennftbalance

GET ?module=account&action=addresstokennftinventory

GET ?module=block&action=getblockreward

GET ?module=block&action=getblocknobytime

GET ?module=log&action=getLogs

GET ?module=stats&action=tokensupply

GET ?module=stats&action=dailyblkcount

GET ?module=stats&action=dailyblockrewards

GET ?module=stats&action=iotxprice

GET ?module=stats&action=dailytxnfee

GET ?module=stats&action=dailynewaddress

GET ?module=stats&action=dailytx

GET ?module=stats&action=iotxdailyprice

GET ?module=token&action=tokenholderlist

GET ?module=gastracker&action=gasestimate

GET ?module=gastracker&action=dailyavggaslimit

GET ?module=gastracker&action=gasoracle

GET ?module=gastracker&action=dailyavggasprice

GET ?module=gastracker&action=dailygasused

POST ?module=contract&action=verifysourcecode

GET ?module=transaction&action=getstatus

GET ?module=transaction&action=gettxreceiptstatus

GET ?module=proxy&action=eth_blockNumber

GET ?module=proxy&action=eth_getBlockByNumber

GET ?module=proxy&action=eth_getUncleByBlockNumberAndIndex

GET ?module=proxy&action=eth_getBlockTransactionCountByNumber

GET ?module=token&action=addresstokenbalance

GET ?module=token&action=tokeninfo