portal_get_head
Get the latest indexed head block or slot for a network. Use to determine the current head before building a manual block-range query.
Instructions
Get just the latest indexed head block or slot for a network.
COMMON USER ASKS:
Latest head
Finalized head
FIRST CHOICE FOR:
getting the current indexed head before building a manual block range
WHEN TO USE:
You only need the current block or slot number.
You need the current head before building a raw block-range query.
DON'T USE:
You want to know if the network is caught up, behind, fresh, or what tables are available.
EXAMPLES:
Latest head: {"network":"base-mainnet"}
Finalized head: {"network":"ethereum-mainnet","type":"finalized"}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Block type | latest |
| network | Yes | Network name or alias |