{
  "name": "PCoin block explorer API",
  "api_version": "1.0.0",
  "custodial": false,
  "endpoints": {
    "GET /api/status": "chain tip, index height, how far behind the index is, node and mempool state",
    "GET /api/tip": "just the tip block",
    "GET /api/blocks?limit=&before_height=": "recent blocks",
    "GET /api/block/{height|hash}?limit=&offset=": "one block",
    "GET /api/block/{height|hash}/txs?limit=&offset=": "full transactions in a block",
    "GET /api/tx/{txid}": "one transaction in full detail",
    "POST /api/tx": "broadcast a signed transaction: {\"hex\": \"...\"}",
    "GET /api/address/{address}?history=": "balances and a short history",
    "GET /api/address/{address}/txs?limit=&offset=&cursor=": "paginated history",
    "GET /api/address/{address}/utxos?include_immature=&include_pending_spend=&include_unconfirmed=&require_mempool=": "spendable outputs",
    "GET /api/addresses?list=a,b,c": "many addresses in one request. PRIVACY: every address in one request is linked to every other by whoever runs this server. Prefer the POST form (no query string to end up in a proxy log), one address per request, or your own instance",
    "POST /api/addresses": "many addresses: {\"addresses\": [...]}",
    "GET /api/addresses/top?limit=&offset=": "richest addresses",
    "GET /api/fees": "the relay fee floor and what to actually pay",
    "GET /api/mempool?limit=&offset=": "unconfirmed transactions the node can see (paged)",
    "GET /api/search?q=": "address, txid, block hash or height"
  },
  "documentation": "contrib/explorer/pcoin_api/API.md"
}