V1 API Reference

ZERA Indexer API

Access indexed blockchain data from the ZERA network. Transactions, blocks, tokens, wallets, governance, DEX, staking, and more.

ALPHA DOCUMENTATIONThese endpoint schemas are currently in Alpha and may contain inaccuracies or incomplete payload parameters. If you encounter any structural divergence while integrating, please report it to us so we can resolve it swiftly.
https://api.zerascan.io/v1
GET ONLYJSON RESPONSES

Blocks

Block detail lookups, paginated latest blocks, and raw block data.

Block Details

GET/v1/blocks?request=details

Retrieve detailed information about a specific block by height or hash.

Parameters

ParameterTypeRequiredDescription
requeststringREQUIREDMust be `details`
blockHeightintoptionalBlock height (required if blockHash not given)
blockHashstringoptionalBlock hash (required if blockHeight not given)

🪙 Usage & Credits

This endpoint consumes 10 credits per request against your active API tier.

Response

json
{
  "status": "string",
  "hash": "string",
  "previousHash": "string",
  "height": "integer",
  "timestamp": "integer",
  "txns": "integer",
  "proposer": "string",
  "size": "integer",
  "curType": "string",
  "fees": {
    "base": {
      "total": "float",
      "validator": "float",
      "burn": "float",
      "treasury": "float"
    },
    "contract *": {
      "total": "float",
      "validator": "float",
      "burn": "float",
      "project": "float"
    }
  },
  "feeDistributions": [
    {
      "token": "string",
      "recipient": "string",
      "amount": "string",
      "type": "string"
    }
  ]
}

Errors

StatusCondition
400Neither blockHeight nor blockHash provided
400Invalid (non-numeric) blockHeight

Latest Blocks

GET/v1/blocks?request=latest

Retrieve a paginated list of the most recent blocks.

Parameters

ParameterTypeRequiredDescription
requeststringREQUIREDMust be `latest`
limitintoptionalNumber of blocks to return
offsetintoptionalPagination offset

🪙 Usage & Credits

This endpoint consumes 10 credits per request against your active API tier.

Response

json
[
  {
    "height": "integer",
    "txns": "integer",
    "timestamp": "integer",
    "proposer": "string"
  }
]

Raw Block Data

GET/v1/blocks?request=raw

Retrieve the full, un-normalized block payload as received from the ZERA network node.

Parameters

ParameterTypeRequiredDescription
requeststringREQUIREDMust be `raw`
blockHeightintoptionalBlock height (required if blockHash not given)
blockHashstringoptionalBlock hash (required if blockHeight not given)

🪙 Usage & Credits

This endpoint consumes 5 credits per request against your active API tier.