API Documentation

Explorer REST API

Base URL:

Categories

Contract Verification (Hardhat/Foundry)Recommended

Etherscan-compatible API for contract verification. Works with Hardhat, Foundry, and other tools.

POST
/api?module=contract&action=verifysourcecode

Submit contract for verification

GET
/api?module=contract&action=checkverifystatus&guid=...

Check verification status

GET
/api?module=contract&action=getabi&address=...

Get contract ABI

GET
/api?module=contract&action=getsourcecode&address=...

Get verified source code

Blockscout API v2 - Smart Contracts

Blockscout v2 format for contract verification and information.

GET
/api/v2/smart-contracts/[address]

Get contract information

POST
/api/v2/smart-contracts/[address]/verification/via/flattened-code

Verify with flattened source code

POST
/api/v2/smart-contracts/[address]/verification/via/standard-input

Verify with Standard JSON Input

Blockscout API v2 - Addresses

Address information and transactions.

GET
/api/v2/addresses/[address]

Get address information

GET
/api/v2/addresses/[address]/transactions

Get address transactions

Blockscout API v2 - Blocks & Transactions

Block and transaction data.

GET
/api/v2/blocks

Get blocks list

GET
/api/v2/blocks/[numberOrHash]

Get block by number or hash

GET
/api/v2/transactions

Get transactions list

GET
/api/v2/transactions/[hash]

Get transaction by hash

GET
/api/v2/stats

Get network statistics

Supply APIs

CoinGecko/CoinMarketCap compatible supply endpoints.

GET
/api/total_supply

Total supply (plain text)

GET
/api/circulating_supply

Circulating supply (plain text)

Explorer APIs - Network & Stats

Network statistics, gas prices, and daily data.

GET
/api/stats

Network statistics overview

GET
/api/stats/gas

Gas price tracker (slow/standard/fast/instant)

GET
/api/stats/daily

Daily statistics (transactions, blocks, gas)

GET
/api/network/node

Connected node information

GET
/api/blockheight

Current block height (plain text)

Explorer APIs - Blocks & Transactions

Block and transaction endpoints.

GET
/api/blocks

Get latest blocks

GET
/api/block/[number]

Get block details by number

GET
/api/transactions

Get latest transactions

GET
/api/transactions/pending

Get pending transactions

GET
/api/tx/[hash]

Get transaction details by hash

Explorer APIs - Addresses

Address information, balances, and transactions.

GET
/api/address/[address]

Get address details and balance

GET
/api/address/[address]/transactions

Get address transaction history

GET
/api/address/[address]/tokens

Get tokens held by address

GET
/api/address/[address]/mining

Get mining statistics for address

GET
/api/address/[address]/type

Check if address is contract or wallet

GET
/api/richlist

Top addresses by balance

Explorer APIs - Contracts

Contract listing and interaction.

GET
/api/contracts

List all deployed contracts

GET
/api/contract/[address]

Get contract details

GET
/api/contract/status/[address]

Check contract verification status

POST
/api/contract/verify

Submit contract for verification

POST
/api/contract/interact

Encode/decode contract function calls

Token APIs

ERC-20/721/1155 token information.

GET
/api/tokens

List all tokens

GET
/api/tokens/[address]

Get token details

GET
/api/tokens/[address]/balance

Get token balance for a holder

Search APIs

Search endpoints for blocks, transactions, and addresses.

GET
/api/search/blocks-by-miner

Search blocks mined by specific address

DEX APIs - Core

DEX trading data, pairs, and pools.

GET
/api/dex/config

DEX configuration (router, factory addresses)

GET
/api/dex/pairs

All trading pairs with liquidity info

GET
/api/dex/tokens

All DEX-tradable tokens

GET
/api/dex/pools/[address]

Get pool details by address

GET
/api/dex/chart/[pair]

Price chart data for a pair

GET
/api/dex/external-price

External price data (native token USD price)

GET
/api/dex/stats

DEX statistics (volume, TVL, trades)

DEX APIs - CoinMarketCapCMC

CoinMarketCap DEX API standard endpoints.

GET
/api/dex/cmc/summary

CMC DEX summary (all trading pairs overview)

GET
/api/dex/cmc/ticker

CMC ticker (24h trading data per pair)

GET
/api/dex/cmc/assets

CMC assets (all tradable tokens)

GET
/api/dex/cmc/orderbook/[pair]

CMC orderbook (AMM simulated)

GET
/api/dex/cmc/trades/[pair]

CMC recent trades for a pair

DEX APIs - DefiLlamaDefiLlama

DefiLlama protocol and TVL endpoints.

GET
/api/dex/defillama

DefiLlama protocol info

GET
/api/dex/defillama/tvl

Total Value Locked (plain number)

GET
/api/dex/defillama/pools

All pools with TVL

GET
/api/dex/defillama/prices

Token prices in USD

GET
/api/dex/defillama/protocol

Full protocol data

GET
/api/dex/defillama/historical

Historical TVL data

DEX APIs - GeckoTerminalGeckoTerminal

GeckoTerminal/CoinGecko DEX API standard endpoints.

GET
/api/dex/geckoterminal/info

API info and version

GET
/api/dex/geckoterminal/networks

Supported networks

GET
/api/dex/geckoterminal/dexes

Supported DEXes on the network

GET
/api/dex/geckoterminal/pools

All pools

GET
/api/dex/geckoterminal/pool/[address]

Single pool details

GET
/api/dex/geckoterminal/new_pools

Recently created pools

GET
/api/dex/geckoterminal/trending_pools

Trending pools by volume

GET
/api/dex/geckoterminal/search/pools

Search pools

GET
/api/dex/geckoterminal/token/[address]

Token info by address

GET
/api/dex/geckoterminal/ohlcv/[pool]

OHLCV candlestick data

GET
/api/dex/geckoterminal/trades/[pool]

Recent trades for a pool

GET
/api/dex/geckoterminal/simple/price

Simple token price lookup

Launchpad APIs

Token launchpad registration and sync.

POST
/api/launchpad/register

Register a newly created token

POST
/api/launchpad/sync

Sync token factory events

Utility APIs

Utility, configuration, and realtime endpoints.

GET
/api/config/client

Client-side configuration (currency, network, explorer)

POST
/api/web3relay

Web3 RPC relay (eth_call, eth_getBalance, etc.)

POST
/api/compile

Compile Solidity source code

GET
/api/realtime

Realtime data (latest block, pending tx count)

📝 Notes

  • • Rate limit: 100 requests/minute
  • • CORS enabled for all endpoints
  • • Amounts in wei (÷10^18 for ETH)

🔒 Security