Skip to content

Add miden-node bundled dev command for local development #1874

@marijamijailovic

Description

@marijamijailovic

To whom is this feature for?

App developer

Why is is this feature needed?

Currently, getting a local Miden node running requires multiple steps: bootstrapping genesis, configuring validator keys, setting up the data directory. This slows down developers who just want a local network to test against.

How is this feature used?

A developer runs a single command miden-node bundled dev - similar to Foundry's anvil, and gets a fully running local Miden network. On every invocation the command:

  1. Clean the data directory - on every invocation to ensure a fresh state.
  2. Bootstrap genesis — use a genesis config (ex. 5 wallets with 10,000 MIDEN tokens each) and the insecure development key. Also, accept a custom --genesis-config-file.
  3. Start all components — launch RPC, block producer, store, and validator as in bundled start.
  4. Print created accounts (address + name) and the RPC URL so the developer knows what's available.

Anything else?

This is part of the midenup improvement proposal: 0xMiden/midenup#108

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions