Block Headers
此内容尚不支持你的语言。
Description
Section titled “Description”Returns the block headers matching the given criteria (slot, parent root). If no criteria are specified, returns the header for the head slot.
Endpoint
Section titled “Endpoint”GET /eth/v1/beacon/headersQuery Parameters
Section titled “Query Parameters”| Parameter | Type | Description |
|---|---|---|
slot | string | Slot number to filter by (optional) |
parent_root | string | Parent root to filter by (optional) |
Request
Section titled “Request”# Get latest headerscurl https://eth-beacon.blockreq.com/v1/rpc/public/eth/v1/beacon/headers
# Get header for specific slotcurl https://eth-beacon.blockreq.com/v1/rpc/public/eth/v1/beacon/headers?slot=1000000