Skip to main content
All requests on this page target the Whitechain Sepolia explorer at https://explorer.testnet.whitechain.io (chain id 1874). The API is public, read-only, and needs no API key. This dashboard reads chain-wide metrics, so it takes no address input.
Every request below has a Run this request button. It sends that exact request from your browser to Whitechain Sepolia and prints the live response, so you can compare it with the sample response above it. The requests are read-only GET calls with no key and no wallet connection.

What you can build

A network tracker reads two Blockscout API surfaces to show:
  • Slow, average, and fast gas tiers in Gwei.
  • Coin price in USD and BTC, and circulating supply.
  • Transaction fees for the most recent completed day.
  • Chain counters: total transactions, addresses, average block time, and a live chain head.

API surfaces and base URLs

The Etherscan-compatible module set is account, block, contract, logs, stats, token, and transaction. It has no gas-oracle action, so the gas tiers come from REST v2 /stats, which is the canonical source for them. A client written against the Etherscan API works against the RPC surface unchanged.

Endpoint map

Reading headline metrics with the RPC API

Send GET requests to /api and select the call with module and action. Most actions return a { status, message, result } envelope; eth_block_number returns a JSON-RPC envelope. Read result in both cases.

Coin price

Request
Response
Read coin_usd and coin_btc for the price cards. The timestamps are Unix seconds marking when each price was set.

Circulating supply

Request
Response
result is the circulating supply in wei as a string. Divide by 10^18 for WBT, and use big-integer or decimal math because the value overflows a JavaScript number.

Daily transaction fees

Request
Response
result is the total fees paid that day, in wei. Here 129648734562000000 is about 0.1296 WBT.
totalfees is aggregated per completed day, so the current day reads 0 until it closes. Query the previous completed day for a real value.

Chain head

Poll this on a short interval for a live block-height indicator.
Request
Response
result is a hex quantity. 0x2f915e is block 3117406. Note this call returns a JSON-RPC envelope, not the { status, message, result } shape the other RPC actions use.

Reading gas tiers and counters with REST v2

One request to /api/v2/stats covers the gas tiers and the network counters.
Request
Response (trimmed)

Errors

An RPC action that fails returns status "0" with a message describing the problem, while result is empty; check status before trusting result. An empty result set (for example, a day with no fees) is not an error. REST v2 returns HTTP 422 with an errors array for a malformed request, where each entry carries a title, a source.pointer naming the bad field, and a detail string.

Refresh cadence

The metrics change at different rates, so refresh them on separate timers. Poll eth_block_number about once per second for a live head. Refetch the price, supply, fees, and /api/v2/stats together on a slower timer, for example every 15 seconds, which also lines up with gas_prices_update_in.