Skip to main content

Cardano Local Testnet

Project description

Ruff

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 🚀

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. 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 develop --override-input cardano-node "github:input-output-hk/cardano-node/master" --recreate-lock-file

Option 2: Using pip

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

  • python3
  • make
  • jq
  • cardano-node
  • cardano-cli

Then install Cardonnay in a virtual environment:

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

# Install Cardonnay
make install

# (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.1.0.tar.gz (72.1 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.1.0-py3-none-any.whl (79.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cardonnay-0.1.0.tar.gz
  • Upload date:
  • Size: 72.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for cardonnay-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4d5c2a7f757442d5f6eb19baf4ef89a8622eabb4af9617feb6071683b631b6c1
MD5 53dc54af7936d359c125bdbb48f28b94
BLAKE2b-256 808e12a4c9ac89e6e5ddde6d27802063916ca54a7a21f5f31bd8d8efeb9098da

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cardonnay-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 79.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for cardonnay-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4d55e055753d2a3efb002a0c9a63188c0424078ea3d20009ce3b9e640c7e0257
MD5 87552cfad7d73dfa0ff9b508afa41b83
BLAKE2b-256 84c55c296a47dccc8d553de9a17a02fc6c9695f5d39566a51e6c76cd499009b9

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