getBlockHeaders

A page of a collection of block headers in ascending order that satisfies query parameters. Any block header from the chain database is returned. This includes headers of orphaned blocks.

Path Params
number
enum
required

The version of the API.

Allowed:
string
enum
required

The version of the Chainweb protocol.

Allowed:
integer
required
≥ 0
Defaults to 0

the id of the chain to which the request is sent

Query Params
integer
≥ 0

Maximum number of records that may be returned. The actual number may be lower.

string

The cursor for the next page. This value can be found as value of the next property of the previous page.

integer
≥ 0

Minimum block height of the returned headers

integer
≥ 0

Maximum block height of the returned headers

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Header
URL
Request
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/json;blockheader-encoding=object