Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Kadena peer API

The P2P communication between chainweb-nodes is sharded into several independentP2P network. The `cut` network is exchanging consensus state. There is also onemempool P2P network for each chain.

Kadena peer API is one of 16 APIs that Kadena publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include peer. The published artifact set on APIs.io includes an OpenAPI specification and an API reference.

This API exposes 4 operations across 2 paths, and defines 4 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.

4 operations 2 paths 4 schemas 2 GET2 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.0
API Version
0.0
Base URL
https://api.chainweb.com/chainweb/0.0/mainnet01
Resource Areas
1

Paths & Operations 4

Across 2 paths, the API surfaces 4 operations — 2 GET, 2 PUT. Each is listed below with its method, path, parameters, and response codes.

peer 4

The P2P communication between chainweb-nodes is sharded into several independent P2P network. The cut network is exchanging consensus state. There is also one mempool P2P network…

GET
/cut/peer
Get Cut-Network Peer Info
2 params → 200
PUT
/cut/peer
Put Cut-Network Peer Info
body → 204400
GET
/chain/{chain}/mempool/peer
Get Chain Mempool-Network Peer Info
3 params → 200
PUT
/chain/{chain}/mempool/peer
Put Chain Mempool-Network Peer Info
1 param body → 204400

Schemas 4

The contract defines 4 schemas that model the data the API accepts and returns. The most detailed are page (3 properties), peer (2 properties). Each schema is shown below with its type and property counts.

page
object
Page of a collection of items
3 properties 3 required
hostAddress
string
Host address containing IPv4 and port
peer
object
Peer info object
2 properties 2 required
posixTimestamp
integer
Seconds since POSIX epoch

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

kadena-peer-api-openapi.yml Raw ↑

Other APIs Kadena publishes across the network.

Kadena block API
Kadena blockhash API
Kadena config API
Kadena cut API
Kadena endpoint-listen API
Kadena endpoint-local API
Kadena endpoint-poll API
Kadena endpoint-private API
Kadena endpoint-send API
Kadena endpoint-spv API
Kadena header API
Kadena mempool API