Protocols

Get protocol by code

Returns a protocol with the specified proto code.

get/v1/protocols/{code}

Path parameters

codeinteger required

Protocol code (e.g. 4 for Athens, 5 for Babylon, etc)

Response

codeinteger

Protocol code, representing a number of protocol changes since genesis (mod 256, but -1 for the genesis block)

hashstring required

Hash of the protocol

versioninteger

Global version number

firstLevelinteger

Block height where the protocol was applied

firstCycleinteger

Index of the first cycle started with the protocol

firstCycleLevelinteger

Level of the first block of the first cycle started with the protocol

lastLevelinteger nullable

Block height where the protocol ends. null if the protocol is active

{"stackTrail":"components:schemas:Protocol:properties:extras","oasType":"schema","type":"unknown","description":"Off-chain extras","nullable":true}

Changes

No recorded changes to this endpoint across all 1 revision of this API.