Skip to main content

Step 1: Run an Octez node

To use the Octez suite with Ghostnet, you need a recent build of the Octez binaries based on the master branch of the Octez source code. You can build the Octez suite from the source code or install prebuilt binaries as described at https://tezos.gitlab.io/introduction/howtoget.html.

The first step is to configure a Tezos node with the octez-node program:

  1. Install the Octez suite programs, including octez-client, octez-node, and octez-dal-node as described in Installing Octez in the Octez documentation.

  2. Initialize the Octez node for Ghostnet, such as in this example:

    octez-node config init --network ghostnet
  3. Speed up the process of initializing the node by loading a snapshot:

    1. Download a rolling snapshot of Ghostnet from https://snapshot.tzinit.org based on the instructions on that site. For example, the command to download the snapshot from the EU servers might look like this:

      wget -O snapshot_file https://snapshots.eu.tzinit.org/ghostnet/rolling
    2. Load the snapshot in the node by running this command:

      octez-node snapshot import snapshot_file
  4. Start the node:

    octez-node run --rpc-addr 127.0.0.1:8732 --log-output="$HOME/octez-node.log"

At first launch, the node generates a fresh identity file used to identify itself on the network. Then it bootstraps the chain, which takes a variable amount of time depending on how many blocks need to be loaded.

In the meantime, you can continue the baking infrastructure while the node is bootstrapping. Continue to Step 2: Set up a baker account.