API 文档

Explorer REST API

基础 URL:

分类

全部端点(GraphQL)GraphQL

cGraph indexed-data GraphQL endpoint. Use introspection or a typed query to access all available fields.

POST
/api/cgraph/graphql

Query all indexed cGraph data through GraphQL.

图节点cGraph

Read-only REST gateway for indexed cGraph data. The chain parameter is supplied automatically as cchain.

GET
/api/cgraph/blocks?limit=20

Latest indexed blocks.

GET
/api/cgraph/transactions?limit=20

Latest indexed transactions.

GET
/api/cgraph/contracts?limit=25&offset=0

Paginated indexed contract directory. Supports verified-state and text search; contract records are read from cGraph, not the legacy MongoDB collection.

GET
/api/cgraph/tokens?kind=erc20&limit=50&offset=0

Paginated chain-wide token directory from cGraph contracts and indexed token events. This is independent of CSwap pair discovery.

GET
/api/cgraph/rankings/balances?limit=50&offset=0

Paginated native-coin balances. New blocks apply transfer and gas-fee deltas locally; a worker calibrates one address per second by RPC, never per browser row.

GET
/api/cgraph/stats/gas

Indexed gas and transaction statistics.

GET
/api/cgraph/stats/overview

Network overview from cGraph: latest block, transaction count, average block time, gas, active miners, addresses, contracts, and tokens.

GET
/api/cgraph/stats/daily?days=30

Daily transaction, block, and active-address aggregates for the requested 1-90 day range.

IPFSGateway

Content-addressed metadata gateway used by contract and token metadata.

GET
https://ipfs.io/ipfs/{CID}

Fetch an IPFS object by CID.

合约验证(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 - 智能合约

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 - 地址

Address information and transactions.

GET
/api/v2/addresses/[address]

Get address information

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

Get address transactions

Blockscout API v2 - 区块与交易

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

供应量 API

CoinGecko/CoinMarketCap compatible supply endpoints.

GET
/api/total_supply

Total supply (plain text)

GET
/api/circulating_supply

Circulating supply (plain text)

浏览器 API

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)

浏览器 API

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

浏览器 API

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/address/[address]/export

Download transaction history as Etherscan/BscScan-compatible CSV (max 5000 rows, oldest first, UTF-8 BOM)

GET
/api/address/[address]/approvals

Active ERC-20 token approvals granted by the address (scanned from Approval events; cached 10 min)

GET
/api/richlist

Top addresses by balance

浏览器 API

Contract listing and interaction.

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

代币 API

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

搜索 API

Search endpoints for blocks, transactions, and addresses.

GET
/api/search/blocks-by-miner

Search blocks mined by specific address

DEX API

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 APICMC

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 APIDefiLlama

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 APIGeckoTerminal

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

首发 API

首发代币注册和同步。

POST
/api/launchpad/register

Register a newly created token

POST
/api/launchpad/sync

Sync token factory events

工具 API

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