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=0x57118D83E76dee7DB5C6b71da12b2cD625eBaB9dDrop-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| Module | Action | Description |
|---|---|---|
| account | balance | BESC balance for one address |
| account | balancemulti | Balances for up to 20 addresses |
| account | txlist | Normal transactions by address |
| account | txlistinternal | Internal transactions by address, hash or block range |
| account | tokentx | ERC-20 transfer events by address |
| account | tokennfttx | ERC-721 / ERC-1155 transfer events by address |
| account | getminedblocks | Blocks relayed by an address |
| contract | getabi | Verified contract ABI |
| contract | getsourcecode | Verified source, settings and constructor arguments |
| contract | getcontractcreation | Creator and creation transaction |
| contract | getcompilerversions | Solidity versions the verifier can run |
| contract | verifysourcecode | Submit source for verification; returns a GUID |
| contract | checkverifystatus | Poll a verification GUID |
| contract | verifyproxycontract | Detect and record a proxy implementation |
| contract | checkproxyverification | Poll a proxy verification GUID |
| contract | getcontractstatus | Whether an address is verified, and by which store |
| transaction | getstatus | Execution status and any revert reason |
| transaction | gettxreceiptstatus | Receipt status flag |
| block | getblocknobytime | Nearest block to a timestamp |
| block | getblockreward | Reward paid for a block and its relayer |
| block | getblockcountdown | Blocks and seconds until a future height |
| logs | getLogs | Event logs by address, topic and block range |
| token | tokensupply | Total supply of an ERC-20 |
| token | tokenbalance | Token balance for one address |
| token | tokeninfo | Name, symbol, decimals, supply and price |
| token | tokenholderlist | Holders and quantities, paged |
| token | tokenholdercount | Live holder count |
| stats | ethsupply | Circulating BESC supply |
| stats | ethsupply2 | Supply breakdown |
| stats | ethprice | Current BESC price in USD |
| stats | chainsize | Chain head, client and sync mode |
| stats | nodecount | Validators producing blocks |
| gastracker | gasoracle | Safe, proposed and fast gas prices in gwei |
| gastracker | gasestimate | Seconds 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=balanceAPI 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.
| Tier | Requests / second | How |
|---|---|---|
| no key | 20 | Nothing to do |
| with key | 60 | ?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 methodsAvailable as ?module=proxy&action=<method>. Read methods are unrestricted; anything that would change state must be a signed transaction via eth_sendRawTransaction.
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 firstGET /api/v2/blocks/:numberOne block by height or hashGET /api/v2/blocks/:number/transactionsTransactions in a block
Transactions
GET /api/v2/transactionsLatest transactionsGET /api/v2/transactions/:hashFull transaction detailGET /api/v2/transactions/:hash/logsDecoded event logsGET /api/v2/transactions/:hash/internalInternal call treeGET /api/v2/transactions/:hash/token-transfersToken transfers in a transaction
Addresses
GET /api/v2/addresses/:addressBalance, nonce, contract flagsGET /api/v2/addresses/:address/transactionsTransactions (supports format=csv)GET /api/v2/addresses/:address/token-balancesToken and NFT holdingsGET /api/v2/addresses/:address/contractVerified source, ABI, read/write methodsGET /api/v2/addresses/:address/securityContract security auditGET /api/v2/accounts/topRich list
Export
GET /api/v2/exportBulk CSV/JSON export: type, address, date or block range, layoutGET /api/v2/export/optionsThe types, formats and layouts this endpoint acceptsGET /api/v2/export/rangeResolve a date range to a block range, or back
Tokens & prices
GET /api/v2/tokensToken list with filtersGET /api/v2/tokens/:address/holdersHolders (supports format=csv)GET /api/v2/tokens/:address/concentrationHolder concentration and riskGET /api/v2/tokens/:address/ohlcvCandles: open, high, low, close, volumeGET /api/v2/pricesEvery DEX-priced tokenGET /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 reservesGET /api/v2/pairsEvery pair the factory has created, with live reservesGET /api/v2/pairs/activePairs that have traded, most recent firstGET /api/v2/pairs/:address/swapsThe trade tape: individual swaps, newest firstGET /api/v2/pairs/:address/activityTrades and distinct traders over a window
Validators & rewards
GET /api/v2/validatorsRegistry set with stake and earningsGET /api/v2/validators/:addressOne validator plus its delegatorsGET /api/v2/rewards/economyTwo-layer reward reconciliationGET /api/v2/rewards/block/:numberExact reward for a blockGET /api/v2/rewards/payoutsDirect payout ledger
Stats & contracts
GET /api/v2/statsChain countersGET /api/v2/stats/gasGas tiers and congestionGET /api/v2/stats/countersIndexer countersGET /api/v2/stats/lines/:idHistorical chart seriesPOST /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.