Linux command
octez-node 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start node
octez-node run
Initialize configuration
octez-node config init --network=[mainnet]
Generate node identity
octez-node identity generate
Start with RPC enabled
octez-node run --rpc-addr=[127.0.0.1:8732]
Reconstruct storage
octez-node reconstruct
Snapshot export
octez-node snapshot export [snapshot.full]
Import from snapshot
octez-node snapshot import [snapshot.full]
说明
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.
参数
- run
- Run the node.
- config init
- Initialize configuration.
- snapshot export
- Export snapshot.
- snapshot import
- Import snapshot.
- identity generate
- Generate a new node identity (required on first launch).
- reconstruct
- Reconstruct archive storage from full mode storage.
- --rpc-addr _addr_
- RPC listen address (default: localhost:8732).
- --network _name_
- Network to connect to (mainnet, ghostnet, etc.).
- --data-dir _dir_
- Data directory (default: ~/.tezos-node).
- --history-mode _mode_
- Storage mode: archive, full (default), or rolling.
- --connections _num_
- Maximum number of peer connections.
- --net-addr _addr_
- P2P listening address (default: :::9732).
FAQ
What is the octez-node command used for?
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.
How do I run a basic octez-node example?
Run `octez-node run` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does run do in octez-node?
Run the node.