API Documentation

Complete API endpoints for ViceversaChain Explorer

GET /api/info

Basic blockchain information (blocks, network, mining)

GET /api/stats

Complete blockchain statistics (including UTXO, mempool, calculated stats)

GET /api/addresses?page=1&limit=100

Top addresses with pagination (sorted by balance)

GET /api/blocks?limit=10

Latest blocks (default 10, customizable limit)

GET /api/block/:hashOrHeight

Block details by hash or height (e.g., /api/block/99964161)

GET /api/tx/:txid

Transaction details by transaction ID

GET /api/address/:address

Address details with UTXO balance

GET /api/search/:query

Universal search (block height, transaction hash, address)

Usage Examples

JavaScript/Fetch
fetch('/api/stats')
    .then(response => response.json())
    .then(data => console.log(data));
cURL
curl -X GET http://localhost:3003/api/stats