2 API
Claude edited this page 2026-04-03 12:05:21 +01:00

Explorer API

The explorer exposes a REST API on the same port as the web interface (default: 3335). All endpoints return JSON.

Base URL: http://localhost:3335/api

Network Info

GET /api/get_info

Returns current network state (proxied from daemon).

curl -s http://localhost:3335/api/get_info

GET /api/get_info/:flags

Returns network info with specific flags.

GET /api/explorer_status

Returns explorer sync status.

GET /api/ping

Health check endpoint.

curl -s http://localhost:3335/api/ping

GET /api/get_total_coins

Returns total coins in circulation.

GET /api/get_visibility_info

Returns visibility and staking information.

Block Queries

GET /api/get_blocks_details/:start/:count

Returns block details for a range of heights.

curl -s http://localhost:3335/api/get_blocks_details/12300/5

GET /api/get_main_block_details/:id

Returns details for a specific block by hash.

curl -s http://localhost:3335/api/get_main_block_details/BLOCK_HASH

GET /api/get_alt_blocks_details/:offset/:count

Returns alternative (orphan) blocks.

GET /api/get_alt_block_details/:id

Returns a specific alt block by hash.

Transaction Queries

GET /api/get_tx_details/:tx_hash

Returns full transaction details.

curl -s http://localhost:3335/api/get_tx_details/TX_HASH

GET /api/get_tx_pool_details/:count

Returns transactions currently in the mempool.

GET /api/get_pool_txs_details

Returns all pool transaction details.

GET /api/get_pool_txs_brief_details

Returns brief pool transaction summaries.

GET /api/get_all_pool_tx_list

Returns list of all pool transaction hashes.

GET /api/search_by_id/:id

Search by block height, block hash, or transaction hash.

curl -s http://localhost:3335/api/search_by_id/12300

GET /api/find_outs_in_recent_blocks

Find outputs in recent blocks (query parameters for filtering).

Aliases

GET /api/get_aliases/:offset/:count/:search/:filter

Paginated alias listing with search and filter.

curl -s http://localhost:3335/api/get_aliases/0/20/all/all

GET /api/get_aliases_count

Returns total number of registered aliases.

Assets

GET /api/get_assets/:offset/:count

Paginated listing of confidential assets.

GET /api/get_whitelisted_assets/:offset/:count

Paginated listing of whitelisted assets.

GET /api/get_asset_details/:asset_id

Returns details for a specific asset.

GET /api/get_assets_count

Returns total number of registered assets.

GET /api/get_asset_supply

Returns supply information for assets.

POST /api/get_assets_price_rates

Returns price rates for assets.

Charts

GET /api/get_chart/:chart/:offset

Returns chart data. Available charts: hashrate, difficulty, block-size, transactions.

curl -s http://localhost:3335/api/get_chart/difficulty/0

Output Info

GET /api/get_out_info/:amount/:i

Returns output information by amount and index.

Price

GET /api/price

Returns current LTHN price data.

GET /api/get_matrix_addresses

Returns matrix governance addresses.

Interactive API Docs

The explorer includes a built-in API reference page with examples at:

http://localhost:3335/lethean_api