LinuxCommandLibrary

octez-node

TLDR

Start node

$ octez-node run
copy
Initialize configuration
$ octez-node config init --network=[mainnet]
copy
Start with RPC enabled
$ octez-node run --rpc-addr=[127.0.0.1:8732]
copy
Reconstruct storage
$ octez-node reconstruct
copy
Snapshot export
$ octez-node snapshot export [snapshot.full]
copy
Import from snapshot
$ octez-node snapshot import [snapshot.full]
copy

SYNOPSIS

octez-node command [options]

DESCRIPTION

octez-node is the Tezos blockchain node. It connects to the Tezos network, validates blocks, and provides RPC access for clients, bakers, and applications.
The node stores blockchain data and participates in peer-to-peer networking.

PARAMETERS

run

Run the node.
config init
Initialize configuration.
snapshot export
Export snapshot.
snapshot import
Import snapshot.
--rpc-addr addr
RPC listen address.
--network name
mainnet, ghostnet, etc.
--data-dir dir
Data directory.

STORAGE MODES

$ full    - Full block history
rolling - Recent blocks only
archive - All history + contexts
copy

CONFIGURATION

$ ~/.tezos-node/
├── config.json
├── context/
└── store/
copy

CAVEATS

Requires significant disk space. Initial sync takes time. Use snapshots for faster bootstrap.

HISTORY

Tezos was created by Arthur Breitman and Kathleen Breitman, launching mainnet in 2018. The node software was rebranded to Octez.

SEE ALSO

Copied to clipboard