Cardano Local Testnet
Project description
Cardonnay
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
-bto 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. 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
masterbranch ofcardano-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:
python3jqcardano-nodecardano-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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cardonnay-0.2.0.tar.gz.
File metadata
- Download URL: cardonnay-0.2.0.tar.gz
- Upload date:
- Size: 70.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63960aaae29fc02dea958fcef7004367defddaa24eeb8974ae824a1eb9663b41
|
|
| MD5 |
e08291a999fdb8fd6815b44c3c5443ea
|
|
| BLAKE2b-256 |
c0f292d79767639592f68184f049061c739878dad05460c8144d00fc25be09ba
|
File details
Details for the file cardonnay-0.2.0-py3-none-any.whl.
File metadata
- Download URL: cardonnay-0.2.0-py3-none-any.whl
- Upload date:
- Size: 75.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5a32baeaa9af9815d55e4d0a387728221b36f2bfeb912fd438e38015c56c46a
|
|
| MD5 |
4a96e1d10fe631174396478e515b8794
|
|
| BLAKE2b-256 |
8466de752d337712f4b558a8ae35e9ec06301a68b9321ad8074c77df822dac74
|