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 cut API

A cut represents a distributed state of a chainweb. It references oneblock header for each chain, such that those blocks are pairwiseconcurrent.Two blocks from two different chains are said to be concurrent if eitherone of them is an adjacent parent (is a direct dependency) of the other orif the blocks do not depend at all on each other.

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

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

This API exposes 2 operations across 1 path, and defines 5 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.

2 operations 1 paths 5 schemas 1 GET1 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 2

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

cut 2

A cut represents a distributed state of a chainweb. It references one block header for each chain, such that those blocks are pairwise concurrent. Two blocks from two different ch…

GET
/cut
Query the current cut
1 param → 200
PUT
/cut
Publish a cut
body → 204401

Schemas 5

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

cut
object
Cut datastruction of the chainweb API
6 properties 3 required
hashWithBlockHeight
object
A block hash and the height of that block
2 properties 2 required
peer
object
Peer info object
2 properties 2 required
posixTimestamp
integer
Seconds since POSIX epoch
hostAddress
string
Host address containing IPv4 and port

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

kadena-cut-api-openapi.yml Raw ↑

Other APIs Kadena publishes across the network.

Kadena block API
Kadena blockhash API
Kadena config 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
Kadena mining API