Skip to content
LogoLogo

Local devnet setup

This guide covers how to set up a local devnet with both consensus and bridge nodes for development and testing purposes. A local devnet allows you to run a complete Celestia network environment on your local machine.

Set up the devnet

Install dependencies

Start a single consensus node

  1. Clone and build celestia-app:

    git clone https://github.com/celestiaorg/celestia-app.git
    cd celestia-app
    make install
  2. Run the single node script:

    ./scripts/single-node.sh

Start a bridge node

In a new terminal, run the bridge node script:

./scripts/single-node-bridge.sh

Test your setup

  1. Check consensus node status:

    curl http://localhost:26657/status
  2. Query the latest block:

    curl http://localhost:26657/block
  3. Check the bridge node head:

    curl http://localhost:26658/head

Stop the devnet

Stop the processes with Ctrl+C in each terminal.

Reset / start fresh

Stop the node(s) with Ctrl+C, then reset the local chain state (be careful if you’re running a real validator):

celestia-appd tendermint unsafe-reset-all --home $HOME/.celestia-app

For more reset options and safety notes (especially if you are running a validator), see Reset network.

Default endpoints

Once your local devnet is running, you can access these endpoints:

ServiceEndpoint
Consensus RPChttp://localhost:26657
Consensus gRPChttp://localhost:9090
Consensus P2Phttp://localhost:26656
Bridge node APIhttp://localhost:26658

Multi-validator private networks (not local-only)

This page focuses on a single-machine devnet. If you instead want to create a private testnet across multiple machines/participants (genesis + gentx flow), start from:

Next steps

With your local devnet running, you can: