API Documentation

Eiquidus-Compatible Blockchain Explorer API

API Overview

This blockchain explorer provides a comprehensive REST API that is fully compatible with the Eiquidus explorer API format. The API supports both single-chain and multi-chain configurations.

Base URL: https://explorer.example.com

Multi-Chain Support

For multi-chain deployments, prefix endpoints with the chain identifier:

# Single chain
GET /api/getblockcount
GET /ext/getmoneysupply

# Multi-chain (replace 'btc' with your chain ID)
GET /btc/api/getblockcount
GET /btc/ext/getmoneysupply
RPC API Endpoints

These endpoints mirror the standard Bitcoin RPC API calls:

EndpointDescriptionResponse TypeExample
/api/getblockcountGet the current block heightPlain text (number)750000
/api/getdifficultyGet the current mining difficultyPlain text (number)25046487590083.27
/api/getconnectioncountGet the number of peer connectionsPlain text (number)8
/api/getblockhash/:heightGet block hash by heightPlain text (hash)000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f
/api/getblock/:hashGet block information by hashJSON object{"hash": "...", "height": 750000, ...}
/api/getrawtransaction/:txidGet raw transaction by IDJSON object{"txid": "...", "vin": [...], "vout": [...]}
/api/getnetworkhashpsGet network hash rate per secondPlain text (number)150000000000000000000
Extended API Endpoints

These endpoints provide additional blockchain data and statistics:

EndpointDescriptionResponse TypeParameters
/ext/getmoneysupplyGet total coin supplyPlain text (number)None
/ext/getaddress/:addressGet address information and recent transactionsJSON object address - Wallet address
/ext/getbalance/:addressGet address balancePlain text (number) address - Wallet address
/ext/gettx/:txidGet transaction details with confirmationsJSON object txid - Transaction ID
/ext/getaddresstxs/:address/:start/:lengthGet paginated address transactionsJSON array address, start, length (max 100)
/ext/getlasttxs/:min/:start?/:length?Get recent large transactionsJSON array min - Minimum amount
/ext/getbasicstatsGet basic blockchain statisticsJSON objectNone
/ext/getsummaryGet comprehensive blockchain summaryJSON objectNone
/ext/getnetworkpeersGet list of network peersJSON arrayNone
Response Examples

{
  "address": "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa",
  "sent": "0.00000000",
  "received": "50.00000000",
  "balance": "50.00000000",
  "last_txs": [
    {
      "addresses": "4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b",
      "type": "vout"
    }
  ]
}

{
  "active": "tx",
  "tx": {
    "txid": "4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b",
    "vin": [...],
    "vout": [...],
    "total": "50.00000000",
    "timestamp": 1231006505,
    "blockhash": "000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f",
    "blockindex": 0
  },
  "confirmations": 750000,
  "blockcount": 750000
}

{
  "difficulty": 25046487590083.27,
  "supply": 19500000,
  "hashrate": 150000000000000000000,
  "lastPrice": 0.00,
  "lastUSDPrice": 0.00,
  "connections": 8,
  "blockcount": 750000,
  "masternodeCountOnline": 0,
  "masternodeCountOffline": 0
}
Rate Limiting & Best Practices
  • Maximum 100 requests per minute per IP address
  • Pagination limits: 100 items maximum per request
  • Use appropriate caching for frequently accessed data
  • Include proper error handling for 429 (rate limit) responses
  • Consider using WebSocket connections for real-time data
Error Handling

The API returns standard HTTP status codes and JSON error responses:

Status CodeDescriptionResponse Format
200SuccessRequested data
400Bad Request {"error": true, "message": "Invalid parameters"}
404Not Found {"error": "Resource not found", "hash": "..."}
429Rate Limit Exceeded {"error": true, "message": "Rate limit exceeded"}
500Internal Server Error {"error": true, "message": "API Error", "details": "..."}

Need help? This API is fully compatible with existing Eiquidus-based tools and libraries.

For additional support or feature requests, please visit our GitHub repository.