For the complete documentation index, see llms.txt. This page is also available as Markdown.

Tezos (XTZ)

GetBlock provides fast and reliable access to Tezos nodes via REST API. Connect to the Tezos network without running your own infrastructure.

Tezos is a self-amending, energy-efficient Layer-1 blockchain that upgrades itself through on-chain governance rather than hard forks. It uses a Liquid Proof-of-Stake consensus (Tenderbake) for fast, deterministic finality, and runs smart contracts written in Michelson. The native token is XTZ (tez), denominated in mutez (1 XTZ = 1,000,000 mutez). Accounts are either implicit (tz1/tz2/tz3/tz4) or originated smart contracts (KT1). GetBlock exposes Tezos through the Octez node RPC — a REST (HTTP + JSON) interface where every resource is addressed by URL path, with reads over GET and simulation, forging, and injection over POST.

Key Features

  • Self-Amending L1: On-chain governance upgrades the protocol without hard forks

  • Liquid Proof-of-Stake: Tenderbake consensus gives deterministic finality within a couple of blocks

  • REST RPC: The Octez node exposes a path-addressed REST API — no JSON-RPC envelope

  • Michelson Contracts: Originated KT1 contracts with on-chain code, storage, views, and big maps

  • mutez Precision: Balances and amounts are in mutez (1 XTZ = 1,000,000 mutez)

  • Block-Pinned Queries: Most reads take a block identifier (head, a level, or a hash) for historical state

TECHNICAL DISCLAIMER: AUTHORITATIVE REST API SPECIFICATION.

GetBlock's API reference documentation is provided exclusively for informational purposes and to optimize the developer experience. The canonical specification is the Octez node RPC, published at tezos.gitlab.io; protocol and developer documentation is at docs.tezos.com.

Network Information

Property
Value

Network Name

Tezos Mainnet

Chain ID

NetXdQprcVkpaWU

Native Currency

XTZ (1 XTZ = 1,000,000 mutez)

Consensus

Liquid Proof-of-Stake (Tenderbake)

Contract Language

Michelson

Address Formats

tz1 / tz2 / tz3 / tz4 (implicit), KT1 (originated)

Finality

Deterministic (~2 blocks)

Base URL

Quickstart

The Octez RPC is REST, not JSON-RPC: the resource is chosen by the URL path appended to your GetBlock endpoint. Reads are GET; simulation, forging, pre-apply, and injection are POST with a JSON body. Most block-scoped paths accept head, a level, or a block hash in place of {block}.

Response

Available REST Endpoints

Chain & Node Info

Endpoint
Method
Description

version

GET

Returns the Octez node version, network protocol, and commit information

chain-id

GET

Returns the base58-encoded chain identifier of the main chain

blocks

GET

Returns a list of the most recent block hashes on the main chain, most recent first

monitor-heads (dedicated)

GET

Opens a streaming response that emits each new block header as it is appended to the main chain

Blocks

Endpoint
Method
Description

block-head

GET

Returns the complete block at the chain head — its hash, header, metadata, and all operations

block-hash

GET

Returns just the hash of the given block

block-header

GET

Returns the full header of the given block: level, protocol, predecessor, timestamp, fitness, operations hash, and the baker's signature

block-header-shell

GET

Returns the protocol-agnostic shell portion of the block header — level, predecessor, timestamp, fitness, and operations hash — without protocol-specific fields

block-metadata

GET

Returns protocol-level metadata for the block: the active and next protocol, baker, consumed gas, voting period, and balance updates (rewards, deposits, burns)

block-operations

GET

Returns all operations included in the block, grouped by validation pass (endorsements, votes, anonymous, and managers)

block-operation-hashes

GET

Returns only the operation hashes included in the block, grouped by validation pass — a lightweight alternative to fetching full operation contents

Context — Constants & Accounts

Endpoint
Method
Description

constants

GET

Returns the active protocol's constants — block time, blocks per cycle, minimal stake, hard gas and storage limits, and reward parameters

contract

GET

Returns the full state of an account or contract: balance, counter, delegate, and (for originated KT1 contracts) script and storage

contract-balance

GET

Returns the spendable balance of an account or contract in mutez (1 XTZ = 1,000,000 mutez)

contract-counter

GET

Returns the operation counter (nonce) of an implicit account

contract-manager-key

GET

Returns the public key of an implicit account, or null if the account has never revealed its key

Context — Contracts & Storage

Endpoint
Method
Description

contract-storage

GET

Returns the current storage of an originated (KT1) smart contract as a Michelson expression (Micheline JSON)

contract-script

GET

Returns the Michelson code and initial storage of an originated (KT1) contract as a Micheline expression

contract-entrypoints

GET

Returns the named entrypoints of an originated (KT1) contract and their parameter types, so a caller knows how to build a valid transaction to the contract

big-map-value

GET

Returns a single value from a big map by its packed-key hash (script expression)

Staking & Delegates

Endpoint
Method
Description

delegate

GET

Returns the full staking state of a delegate (baker): full and staking balance, delegated contracts, frozen deposits, grace period, and whether it is deactivated

delegate-staking-balance

GET

Returns a delegate's total staking balance in mutez — its own stake plus all balances delegated to it — which determines baking and attestation rights

Governance

Endpoint
Method
Description

votes-current-period

GET

Returns the current governance (amendment) voting period: its kind (proposal, exploration, cooldown, promotion, adoption), index, and start position

Mempool & Transactions

Endpoint
Method
Description

mempool-pending-operations

GET

Returns operations currently in the node's mempool, classified as applied, refused, branch_refused, branch_delayed, or outdated

run-operation

POST

Simulates (dry-runs) a signed operation against the current context without broadcasting it, returning the operation results including consumed gas and any errors

run-script-view

POST

Executes an on-chain view of a smart contract and returns its result, without creating a transaction

forge-operations

POST

Serializes (forges) an operation's JSON representation into the binary hex payload that must be signed before injection

preapply-operations

POST

Pre-applies a signed operation to predict its result and metadata before injection, surfacing errors and balance updates

inject-operation

POST

Broadcasts a signed, forged operation to the network and returns its operation hash

Support

For technical support and questions:

See Also

Last updated

Was this helpful?