# Jotcoin Explorer API v1 All endpoints are read-only GET routes under `/api/v1`. Successful responses use `{"data":...}`. Errors use `{"error":{"code":"...","message":"..."}}`. | Endpoint | Response data | | --- | --- | | `/status` | Node and index heights and hashes, synchronization, difficulty, estimated hashrate, target and observed time, subsidy, maturity, mempool count and supply. | | `/height` | Node and indexed height, plus synchronization state. | | `/supply` | Net issued supply, maximum supply, address-attributable UTXOs, unattributed UTXOs and provably unspendable outputs. | | `/difficulty` | Difficulty and source (`node` or `index`). | | `/hashrate` | Estimated hashes per second and requested estimation window. | | `/blocks` | Block summaries, newest first. Paginated. | | `/block/{hash_or_height}` | Block, neighbors, fees, subsidy, AuxPoW metadata and paginated transaction summaries. | | `/transactions` | Confirmed transaction summaries, newest blocks first. Paginated. | | `/tx/{txid}` | Transaction metadata and paginated inputs and outputs. The page applies to both arrays. | | `/address/{address}` | Balances, cumulative received and sent, transaction count, first and latest recorded activity. | | `/address/{address}/balance` | Balances, pending change, spendable and immature amounts, confirmed transaction count. | | `/address/{address}/utxos` | Confirmed UTXOs with maturity and confirmations. Paginated. | | `/address/{address}/txs` | Confirmed address activity, newest first, with received and sent amounts per transaction. Paginated. | | `/richlist` | Positive balances sorted descending, with deterministic address tie-break, rank, share, count, and supply denominators. Paginated. | | `/mempool` | Snapshot of unconfirmed transactions, newest first, plus count and anchor hash. Paginated. | | `/search?q={query}` | Matching block, transaction and valid address identifiers and relative explorer URLs. | Pagination parameters are `page` (1–100,000) and `limit` (1–100, default 25). Page objects have `page`, `limit`, `has_more` and `items`. Pages can shift as blocks or mempool snapshots change. Hash lookups accept uppercase or lowercase hexadecimal. Valid network addresses without indexed activity return zero confirmed balances. Fields ending in `_jotoshi` are integers. Cumulative issued, burned, received and sent values are decimal integer strings for exact interoperability. Other monetary fields are JSON integer numbers, so consumers should use a parser that preserves 64-bit integers. `share_millionths_of_percent` divides balance by address-attributable supply, multiplies by 100,000,000 and truncates to an integer. Divide by 1,000,000 for percent. Timestamps are Unix seconds. Block intervals use milliseconds. `null` indicates a value that is unavailable or does not apply, such as a pending delta when mempool coverage is incomplete, the fee of a coinbase transaction or a finite maximum supply. Confirmed results reflect the persisted index. Use `/status` to check the indexed tip against Core. Spendable balance represents confirmed address UTXOs old enough to spend in the next block. Pending spends do not remove them from the confirmed balance. Confirmed output states are `unspent`, `spent` or `unspendable`; pending outputs can be `pending`, `pending_spend`, `unspendable` or `unknown` if pending coverage is incomplete. Errors include `400 invalid_request`, `404 not_found`, `405 method_not_allowed`, `422 response_limit`, `429 rate_limit`, `500 internal`, `503 unavailable`, and `504 timeout`. Responses are capped at 8 MiB. When a transaction detail response exceeds this limit, request a smaller `limit`. Rate limiting uses the TCP peer IP and returns `Retry-After`. CORS is configurable and defaults to same-origin access. ```sh curl -fsS http://localhost:8080/api/v1/status curl -fsS 'http://localhost:8080/api/v1/blocks?limit=5' curl -fsS http://localhost:8080/api/v1/block/0 curl -fsS http://localhost:8080/api/v1/supply curl -fsS http://localhost:8080/api/v1/richlist curl -fsS http://localhost:8080/api/v1/mempool curl -fsS 'http://localhost:8080/api/v1/search?q=0' ```