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

Tezos Blocks API

The Blocks API from Tezos — 7 operation(s) for blocks.

Tezos Blocks API is one of 34 APIs that Tezos publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Blocks. The published artifact set on APIs.io includes an OpenAPI specification.

This API exposes 7 operations across 7 paths, and defines 65 schemas. It is described by OpenAPI 3.0.0, at version 1.17.1.

Requests are made against a single base URL, https://api.tzkt.io.

7 operations 7 paths 65 schemas 7 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.0
API Version
1.17.1
Base URL
https://api.tzkt.io/v1
Resource Areas
1

Paths & Operations 7

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

Blocks 7
GET
/v1/blocks/count
Get blocks count
Blocks_GetCount → 200
GET
/v1/blocks
Get blocks
Blocks_Get 11 params → 200
GET
/v1/blocks/{hash}
Get block by hash
Blocks_GetByHash 4 params → 200
GET
/v1/blocks/{level}
Get block by level
Blocks_GetByLevel 4 params → 200
GET
/v1/blocks/{level}/timestamp
Get timestamp by level
Blocks_GetByLevel2 1 param → 200
GET
/v1/blocks/{timestamp}
Get block by timestamp
Blocks_GetByDate 4 params → 200
GET
/v1/blocks/{timestamp}/level
Get level by timestamp
Blocks_GetByDate2 1 param → 200

Schemas 65

The contract defines 65 schemas that model the data the API accepts and returns. The most detailed are Block (78 properties), SrGameInfo (9 properties), AccountParameter (9 properties), DateTimeParameter (8 properties). Each schema is shown below with its type and property counts.

TxRollupOriginationOperation
SortParameter
object
2 properties
SmartRollupExecuteOperation
SetDelegateParametersOperation
BallotOperation
SmartRollupPublishOperation
TxRollupRejectionOperation
SetDepositsLimitOperation
ActivationOperation
OperationError
object
1 property 1 required
AnyOfParameter
object
3 properties
OriginatedContract
object
6 properties
DalPublishCommitmentOperation
OffsetParameter
object
3 properties
UpdateSecondaryKeyOperation
RegisterConstantOperation
SrGameInfo
object
9 properties
DateTimeParameter
object
8 properties
TxRollupRemoveCommitmentOperation
DoubleConsensusOperation
PreattestationOperation
SoftwareAlias
object
2 properties
DoubleBakingOperation
MichelineFormat
string
SmartRollupCementOperation
ProposalAlias
object
2 properties
RevealOperation
DelegationOperation
VdfRevelationOperation
TxRollupReturnBondOperation
BigMapDiff
object
4 properties
AccountParameter
object
9 properties
PeriodInfo
object
5 properties
TxParameter
object
2 properties
DalAttestationRewardOperation
SmartRollupAddMessagesOperation
TransferTicketOperation
TxRollupSubmitBatchOperation
BigMapKeyShort
object
3 properties
StakingOperation
TxRollupDispatchTicketsOperation
OriginationOperation
Block
object
78 properties
IncreasePaidStorageOperation
SrCommitmentInfo
object
8 properties
SmartRollupRecoverBondOperation
TxRollupCommitOperation
NonceRevelationOperation
TransactionOperation
RevelationPenaltyOperation
QuoteShort
object
8 properties
Alias
object
2 properties
AutostakingOperation
TxRollupFinalizeCommitmentOperation
ProposalOperation
SmartRollupRefuteOperation
DrainDelegateOperation
MigrationOperation
AttestationOperation
AttestationRewardOperation
SmartRollupOriginateOperation
DalEntrapmentEvidenceOperation
Symbols
string
Int32Parameter
object
8 properties
SelectParameter
object
2 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

tezos-blocks-api-openapi.yml Raw ↑

Other APIs Tezos publishes across the network.

TzKT Accounts API
TzKT Blocks API
TzKT Operations API
TzKT Contracts API
TzKT Big Maps API
TzKT Tokens API
TzKT Delegations and Staking API
TzKT Governance API
TzKT Protocols API
TzKT WebSocket API
Tezos Accounts API
Tezos BigMaps API