-
BESCScan

API Documentation

Two APIs: an Etherscan-compatible layer for existing tooling, and a native v2 REST API.

Getting started

No API key is required. Requests are rate limited per caller; if you need a higher limit for an exchange or indexer, get in touch and we will allowlist you.

https://explorer.beschyperchain.com/api?module=account&action=balance&address=0x57118D83E76dee7DB5C6b71da12b2cD625eBaB9d

Drop-in compatible: point any Etherscan-based client at https://explorer.beschyperchain.com/api and existing code works unchanged.

This covers the explorer’s APIs. For the chain itself, meaning RPC endpoints, running a node, consensus, permissioning and the bridge, see the official chain documentation.

Etherscan-compatible endpoints

34 actions
ModuleActionDescription
accountbalanceBESC balance for one address
accountbalancemultiBalances for up to 20 addresses
accounttxlistNormal transactions by address
accounttxlistinternalInternal transactions by address, hash or block range
accounttokentxERC-20 transfer events by address
accounttokennfttxERC-721 / ERC-1155 transfer events by address
accountgetminedblocksBlocks relayed by an address
contractgetabiVerified contract ABI
contractgetsourcecodeVerified source, settings and constructor arguments
contractgetcontractcreationCreator and creation transaction
contractgetcompilerversionsSolidity versions the verifier can run
contractverifysourcecodeSubmit source for verification; returns a GUID
contractcheckverifystatusPoll a verification GUID
contractverifyproxycontractDetect and record a proxy implementation
contractcheckproxyverificationPoll a proxy verification GUID
contractgetcontractstatusWhether an address is verified, and by which store
transactiongetstatusExecution status and any revert reason
transactiongettxreceiptstatusReceipt status flag
blockgetblocknobytimeNearest block to a timestamp
blockgetblockrewardReward paid for a block and its relayer
blockgetblockcountdownBlocks and seconds until a future height
logsgetLogsEvent logs by address, topic and block range
tokentokensupplyTotal supply of an ERC-20
tokentokenbalanceToken balance for one address
tokentokeninfoName, symbol, decimals, supply and price
tokentokenholderlistHolders and quantities, paged
tokentokenholdercountLive holder count
statsethsupplyCirculating BESC supply
statsethsupply2Supply breakdown
statsethpriceCurrent BESC price in USD
statschainsizeChain head, client and sync mode
statsnodecountValidators producing blocks
gastrackergasoracleSafe, proposed and fast gas prices in gwei
gastrackergasestimateSeconds to confirmation

API console

Every endpoint below is pre-filled with a real value from this chain, so you can run it and see the shape of the answer before writing any code.

Native balance for one address

The BESC balance, in wei, as a string.

module=account · action=balance

The address to look up.

Always "latest" here; this chain is not archived.

Request

https://explorer.beschyperchain.com/api?module=account&action=balance

API keys and rate limits

No key is required. The public data is public, and an anonymous caller gets a real allowance rather than a token one.

TierRequests / secondHow
no key20Nothing to do
with key60?apikey=… or an X-API-Key header

An unknown key is not an error. It drops you to the anonymous tier and the request still runs. Keys are counted per key, so one person’s script cannot exhaust an office’s shared address. Over the limit returns HTTP 429 in the same envelope the rest of the API uses. Create a key

JSON-RPC proxy

13 methods

Available as ?module=proxy&action=<method>. Read methods are unrestricted; anything that would change state must be a signed transaction via eth_sendRawTransaction.

eth_blockNumbereth_getBlockByNumbereth_getBlockTransactionCountByNumbereth_getTransactionByHasheth_getTransactionByBlockNumberAndIndexeth_getTransactionCounteth_sendRawTransactioneth_getTransactionReceipteth_calleth_getCodeeth_getStorageAteth_gasPriceeth_estimateGas

Native v2 API

Richer shapes than the compatibility layer, with every wei-scale value returned as a string so nothing is lost to floating point.

Blocks

  • GET /api/v2/blocksPaginated blocks, newest first
  • GET /api/v2/blocks/:numberOne block by height or hash
  • GET /api/v2/blocks/:number/transactionsTransactions in a block

Transactions

  • GET /api/v2/transactionsLatest transactions
  • GET /api/v2/transactions/:hashFull transaction detail
  • GET /api/v2/transactions/:hash/logsDecoded event logs
  • GET /api/v2/transactions/:hash/internalInternal call tree
  • GET /api/v2/transactions/:hash/token-transfersToken transfers in a transaction

Addresses

  • GET /api/v2/addresses/:addressBalance, nonce, contract flags
  • GET /api/v2/addresses/:address/transactionsTransactions (supports format=csv)
  • GET /api/v2/addresses/:address/token-balancesToken and NFT holdings
  • GET /api/v2/addresses/:address/contractVerified source, ABI, read/write methods
  • GET /api/v2/addresses/:address/securityContract security audit
  • GET /api/v2/accounts/topRich list

Export

  • GET /api/v2/exportBulk CSV/JSON export: type, address, date or block range, layout
  • GET /api/v2/export/optionsThe types, formats and layouts this endpoint accepts
  • GET /api/v2/export/rangeResolve a date range to a block range, or back

Tokens & prices

  • GET /api/v2/tokensToken list with filters
  • GET /api/v2/tokens/:address/holdersHolders (supports format=csv)
  • GET /api/v2/tokens/:address/concentrationHolder concentration and risk
  • GET /api/v2/tokens/:address/ohlcvCandles: open, high, low, close, volume
  • GET /api/v2/pricesEvery DEX-priced token
  • GET /api/v2/poolsDEX pairs with liquidity and volume

Market data (on-chain)

  • GET /api/v2/prices/onchainSpot price of every token with a pool, from AMM reserves
  • GET /api/v2/pairsEvery pair the factory has created, with live reserves
  • GET /api/v2/pairs/activePairs that have traded, most recent first
  • GET /api/v2/pairs/:address/swapsThe trade tape: individual swaps, newest first
  • GET /api/v2/pairs/:address/activityTrades and distinct traders over a window

Validators & rewards

  • GET /api/v2/validatorsRegistry set with stake and earnings
  • GET /api/v2/validators/:addressOne validator plus its delegators
  • GET /api/v2/rewards/economyTwo-layer reward reconciliation
  • GET /api/v2/rewards/block/:numberExact reward for a block
  • GET /api/v2/rewards/payoutsDirect payout ledger

Stats & contracts

  • GET /api/v2/statsChain counters
  • GET /api/v2/stats/gasGas tiers and congestion
  • GET /api/v2/stats/countersIndexer counters
  • GET /api/v2/stats/lines/:idHistorical chart series
  • POST /api/v2/contracts/:address/readCall a view method (proxy-aware)
  • POST /api/v2/simulateSimulate a transaction with state diff

Building a market data app

Everything below is public, needs no key, and works from a browser: these routes answer with Access-Control-Allow-Origin: * for any origin. A key is optional and only raises your rate limit.

1. Every token and what it is worth

Spot price straight from AMM reserves at the latest block. Covers every token that has a pool, which is roughly twice what an external aggregator lists for this chain.

curl https://explorer.beschyperchain.com/api/v2/prices/onchain

{
  "source": "amm_reserves",
  "native_usd": 0.212191,
  "count": 80,
  "items": [
    {
      "address": "0xf794E0B0c0a91099ccAcac296193e04Fb860442a",
      "price_besc": 1.19598054,
      "price_usd": 0.25377631,
      "liquidity_besc": 31715.3,
      "confidence": "high"
    }
  ]
}

Check confidence before you display a figure. A reserve ratio is the real spot price, but on a thin pool it can be moved by a single small trade, low means exactly that.

2. The pairs behind those prices

Live reserves for every pair the factory has created, sorted by depth. Raw reserves are strings so a uint256 survives the trip.

curl https://explorer.beschyperchain.com/api/v2/pairs

3. The trade tape

Individual swaps, newest first, decoded from the DEX’s own events. Each row names the token that went in and the token that came out, so you never have to work out which way round the pair is.

curl https://explorer.beschyperchain.com/api/v2/pairs/active?size=20          # pairs that are actually trading
curl https://explorer.beschyperchain.com/api/v2/pairs/<pair>/swaps?size=50  # the fills

4. Charts

curl "https://explorer.beschyperchain.com/api/v2/tokens/<address>/ohlcv?days=30"

Two prices, and they are not the same thing

/prices is trade-weighted and comes from an aggregator; /prices/onchain is the spot reserve ratio and comes from the chain. On a deep pool they agree to a fraction of a percent. On a thin one they diverge, and neither is wrong, one is what last traded, the other is what you would get right now. Pick deliberately, and say which you used.

Notes

  • Large numbers are strings. Balances, supplies and gas values exceed what a JSON number holds exactly, so parse them as big integers, never as floats.
  • CSV export. List endpoints that support it accept ?format=csv, which returns the page you asked for. For a whole history, use /api/v2/export: it takes a type (transactions, internal, erc20, nft, blocks, all), an address, either a start/end date pair or a from_block/to_block pair, a layout (scan or koinly) and a format (csv or json). Up to 10,000 records per dataset, oldest first. The export page builds the same URLs.
  • No historical prices. Only the current price is indexed. Fiat columns in an export are today’s price applied to a past amount; historical-price columns are present but empty, and the Koinly layout leaves Net Worth blank so Koinly prices each row itself.
  • Proxy contracts. Contract reads resolve an EIP-1967 implementation automatically and execute against the proxy’s storage. See verified contracts.