Skip to main content

Cardano Local Testnet

Project description

Ruff PyPi Version

Cardonnay

Cardonnay logo

Cardonnay is a command-line tool for setting up and managing local Cardano testnets.
It supports multiple preconfigured testnet types and makes it easy to inspect and control their lifecycle.


🚀 Getting Started

1. Create a conway_fast testnet

$ cardonnay create -t conway_fast
Starting the testnet cluster with `/var/tmp/cardonnay/cluster0_conway_fast/start-cluster`:
[...]
Cluster started 🚀

ℹ️ Pro Tip: Add -b to create the testnet in the background, or -c "comment" to add a comment.

2. List running testnet instances

$ cardonnay control ls

[
  {
    "instance": 0,
    "type": "conway_fast",
    "state": "started",
    "comment": null
  }
]

3. Inspect the testnet faucet

$ cardonnay inspect faucet -i 0

{
  "address": "addr_test1vpgm9cj9u3k63642vju9jqgeqy393upttt0qtwptlesy08gx620qd",
  "vkey_file": "/var/tmp/cardonnay/state-cluster0/shelley/genesis-utxo.vkey",
  "skey_file": "/var/tmp/cardonnay/state-cluster0/shelley/genesis-utxo.skey"
}

4. Work with the testnet

source <(cardonnay control print-env -i 0)
cardano-cli query tip --testnet-magic 42

5. Stop all running testnet instances

$ cardonnay control stop-all
Stopping the testnet cluster with `/var/tmp/cardonnay/state-cluster0/stop-cluster`:
[...]
Cluster terminated!

🛠️ Installation

Option 1: Using Nix

If you use Nix, you can spin up a development shell with all dependencies:

nix develop

This will provide a fully set-up environment, including Python, Cardano binaries, and jq.

ℹ️ NOTE: To use the latest master branch of cardano-node, run

nix flake update --accept-flake-config --override-input cardano-node github:IntersectMBO/cardano-node/master
nix develop --accept-flake-config

Option 2: Using pip

Ensure the following dependencies are installed and available in your PATH:

  • python3
  • jq
  • cardano-node
  • cardano-cli
  • optional: cardano-submit-api

Then install Cardonnay in a virtual environment:

# Create and activate a virtual environment
python3 -m venv .venv
source .venv/bin/activate

# Install Cardonnay
pip install -U --require-virtualenv cardonnay

# (Optional) Enable shell completions for Bash
source completions/cardonnay.bash-completion

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cardonnay-0.2.3.tar.gz (72.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cardonnay-0.2.3-py3-none-any.whl (77.9 kB view details)

Uploaded Python 3

File details

Details for the file cardonnay-0.2.3.tar.gz.

File metadata

  • Download URL: cardonnay-0.2.3.tar.gz
  • Upload date:
  • Size: 72.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for cardonnay-0.2.3.tar.gz
Algorithm Hash digest
SHA256 b19790336f1eacccdc085e27867b8eca73e0bc8dd9ea47dfbba52a8d9e28dbc8
MD5 77a8d3de1780f22248871a3f0d11e5a9
BLAKE2b-256 a43211099107a7ebe717df8e778d05467928de9d77a0ad980f4a4ff56fb63b20

See more details on using hashes here.

File details

Details for the file cardonnay-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: cardonnay-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 77.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for cardonnay-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d46fef5986a6d43f2ec7c0e79a5b69fd3459635bd2f2c0ba8f373e20045a8fb6
MD5 e059815b0f8df66323bfc5050a93fa1f
BLAKE2b-256 0694373c801515191ee995cbb75cbae7ab00a43fee3b483f2734b3fafa60e805

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page