Kadena header API
These endpoints return block headers from the chain database.Similar to the block endpoints, block headers are generally returned inascending order and include headers of orphaned blocks.For only querying block headers that are included in the winning branch ofthe chain the `branch` endpoints can be used, which return block headers indescending order starting from the leafs of branches of the block chain.Block headers are returned in three different formats specified in the `accept` header of the request:* `application/json`, returns block headers in base64Url (without padding) encoded binary.* `application/json;blockheader-encoding=object`, returns block headers in JSON encoding.* `application/octet-stream`, when supported by the endpoint, returns block headers as binary.
Kadena header API is one of 16 APIs that Kadena publishes on the APIs.io network, described by a machine-readable OpenAPI specification.
Tagged areas include header. The published artifact set on APIs.io includes an OpenAPI specification and an API reference.
This API exposes 3 operations across 3 paths, and defines 16 schemas. It is described by OpenAPI 3.0.0, at version 0.0.
Requests are made against 5 base URLs: https://api.chainweb.com/chainweb/{apiVersion}/mainnet01, https://api.testnet.chainweb.com/chainweb/{apiVersion}/testnet04, {schema}://{domain}:{port}/chainweb/{apiVersion}/{chainwebVersion}, https://{location}.chainweb.com/chainweb/{apiVersion}/mainnet01, https://{location}.testnet.chainweb.com/chainweb/{apiVersion}/testnet04.
Metadata
The identity and technical contract details declared by the specification.
Paths & Operations 3
Across 3 paths, the API surfaces 3 operations — 2 GET, 1 POST. Each is listed below with its method, path, parameters, and response codes.
These endpoints return block headers from the chain database. Similar to the block endpoints, block headers are generally returned in ascending order and include headers of orphan…
Schemas 16
The contract defines 16 schemas that model the data the API accepts and returns. The most detailed are blockHeader (13 properties), page (3 properties). Each schema is shown below with its type and property counts.
Specification
The full machine-readable OpenAPI contract behind this narrative.
Source
More from Kadena 12
Other APIs Kadena publishes across the network.