PUBLIC · READ ONLY · RPC FIRST

Yerbas Public API

Public blockchain data directly from Yerbas Core and native indexes. No explorer database and no wallet/private-key access.
Recommended: use /api/v1/... for new integrations. Legacy /api/get... and /ext/... routes are provided for migration from the older explorer where the result can be produced faithfully from Yerbas Core.
V1

STABLE PUBLIC SURFACE

Versioned API

JSON · CORS enabled
GET /api/v1

Machine-readable API index and endpoint map.

Try
GET /api/v1/health

Explorer/Core health and current block height.

Try
GET /api/v1/status

Chain, network, connection, mempool, and synchronization status.

Try
GET /api/v1/blocks?limit=12&offset=0

Confirmed blocks from the current tip. Limit: 1–25; offset skips that many blocks from the tip for pagination.

Try
GET /api/v1/block/:height-or-hash

Block details by height or block hash.

path parameter
GET /api/v1/tx/:txid

Decoded transaction from Core txindex.

path parameter
GET /api/v1/address/:address

Address balance, total received, transaction IDs, UTXOs, and asset balances.

path parameter
GET /api/v1/assets?q=&page=1&count=25&type=&metadata=&reissuable=

Browse/search/filter the native Core asset directory with live holder counts.

Try
GET /api/v1/assets/stats

Aggregate native asset-index counts used by the Assets dashboard.

Try
GET /api/v1/asset/:asset-name

Asset metadata, issuance block, holder count, and indexed holder balances.

path parameter
GET /api/v1/supply

UTXO-set supply data from gettxoutsetinfo.

Try
GET /api/v1/emission?height=

Block subsidy/emission details; defaults to the current tip.

Try
GET /api/v1/smartnodes?status=ENABLED&page=1&count=50&collateral=&q=

Live deterministic smartnode directory merged from Core smartnodelist and ProTx data. Defaults to active/ENABLED nodes.

Try
GET /api/v1/network-map?view=smartnodes

Approximate geolocated Smartnodes or connected peers for the public network map.

Try
GET /api/v1/network/peers

Current peer connections reported by this Yerbas Core node.

Try
GET /api/v1/market-price

Normalized live NestEx YERB/USDT price, 24h range/volume, bid/ask, and market-cap estimate.

Try
GET /api/v1/markets

Configured Yerbas market feeds with normalized ticker and valuation data.

Try
GET /api/v1/market/nestex/YERB/USDT

NestEx YERB/USDT ticker, order book, recent trades, liquidity, and Core-based market-cap estimate.

Try
L1

OLD EXPLORER MIGRATION

Legacy RPC-style compatibility

plain text / JSON
GET /api/getdifficulty

Current network difficulty.

Try
GET /api/getconnectioncount

Current Core peer connection count.

Try
GET /api/getblockcount

Current block height.

Try
GET /api/getblockhash?index=HEIGHT

Block hash at a specific height.

query parameter
GET /api/getblock?hash=HASH

Decoded block object.

query parameter
GET /api/getrawtransaction?txid=TXID&decrypt=1

Raw hex when decrypt=0; decoded transaction when decrypt=1.

query parameter
GET /api/getnetworkhashps

Current network hash rate reported by Core.

Try
GET /api/getmasternodecount

Compatibility name for current smartnode count.

Try
LX

EXTENDED COMPATIBILITY

Legacy /ext routes

Core/index backed
GET /ext/getmoneysupply

Current UTXO-set money supply.

Try
GET /ext/getaddress/:address

Address/index information.

path parameter
GET /ext/getaddresstxs/:address/:start/:length

Indexed transaction IDs for an address. Length is capped at 100.

path parameters
GET /ext/gettx/:txid

Decoded transaction.

path parameter
GET /ext/getbalance/:address

Current address balance as YERB.

path parameter
GET /ext/getnetworkpeers

Current peers only. Explorer-Light does not maintain a 24-hour peer/geolocation database.

Try
GET /ext/getbasicstats

Block count, supply, live NestEx YERB/USDT price, and smartnode total.

Try
GET /ext/getsummary

Difficulty, supply, hash rate, connections, block count, and smartnode counts.

Try
GET /ext/getmasternodelist

Compatibility route returning registered smartnodes with wallet ownership metadata removed.

Try
GET /ext/getcurrentprice

Compatibility route returning the current NestEx YERB/USDT market price and bid/ask.

Try
DB0

INTENTIONALLY NOT EMULATED

Database-dependent legacy calls

HTTP 501
/ext/getdistribution

Old explorer wealth-distribution database aggregation.

not available
/ext/getlasttxs/...

Old explorer globally indexed transaction scan.

not available
/ext/getmasternoderewards/...

Old explorer database-derived reward history.

not available
/ext/getmasternoderewardstotal/...

Old explorer database-derived reward aggregation.

not available
CORS: public API responses include Access-Control-Allow-Origin: *. This API is read-only. Arbitrary RPC, wallet access, transaction creation, signing, broadcasting, shell execution, and private-key access are not exposed.