Setup guide to create private Cardano testnet and run sample transactions including a Plutus contract example. This environment can be used for local development and learning.
Shell
48
88 commits
updated Jan 31, 2023
This project provides instructions and shell scripts to bootstrap a private Cardano testnet and connect a cardano-db-sync process to it.
If you don't want to bother with setting up cardano-db-sync, you can easily skip over the sections of this project that are not relevant.
Note: If you want to run a private testnet in the babbage era, you can check out the babbage branch and follow these instructions instead.
The babbage instructions do not include instructions for running smart contract transactions yet, but the network will support the new Plutus V2.
The scripts used by this project to create the private Cardano testnet are taken from the IOHK cardano-node project and have been modified as needed.
You may find the original script files in the IOHK git repository: cardano-node scripts.
In particular, running cardano-db-sync to sync to the private testnet required a few changes to the original scripts provided by IOHK.
Hopefully, this documentation provides a lot of value for others. I welcome your feedback both good and bad!
cardano-node is configured to run 4 CPU cores in parallel.
This configuration may be changed as necessary to fit your system constraints.
Search for cardano-node run in mkfiles.sh to modify.cardano-db-sync connected to your private testnet, you can use SQL queries to view blockchain activity data.cardano-db-sync process syncs blockchain data to a highly normalized database schema. This enables blockchain data to be queried with SQL.For an additional overview of this project, please check out this medium article
Install Cardano executables
cardano-node, cardano-cli, and optionally cardano-db-syncOptional: Install PostgreSQL packages and create Postgres user
cardano-db-sync process uses a connection to a PostgreSQL database.Run scripts to set up & run private Cardano network
Optional: Attach DB Sync process the network
cardano-db-sync process to the network, which syncs blockchain data to a PostgreSQL database.Run simple transaction and optionally query the db-sync database to see results
Run Plutus script transactions
This project is provided free of charge to the Cardano community. The author of this project is a fan of Cardano, as well as a Cardano stake pool operator. I am not affiliated with IOHK in any official capacity.
If you want to support the continued development of this project, you can delegate or recommend my staking pool:
If you'd like to help maintain this project, please feel free to submit a pull request. Please ensure that any script changes have been tested and verified.
This project is licensed under the terms of the MIT License.
Shell
87.6%
Haskell
12.4%
Setup guide to create private Cardano testnet and run sample transactions including a Plutus contract example. This environment can be used for local development and learning.
Shell
48
88 commits
updated Jan 31, 2023
This project provides instructions and shell scripts to bootstrap a private Cardano testnet and connect a cardano-db-sync process to it.
If you don't want to bother with setting up cardano-db-sync, you can easily skip over the sections of this project that are not relevant.
Note: If you want to run a private testnet in the babbage era, you can check out the babbage branch and follow these instructions instead.
The babbage instructions do not include instructions for running smart contract transactions yet, but the network will support the new Plutus V2.
The scripts used by this project to create the private Cardano testnet are taken from the IOHK cardano-node project and have been modified as needed.
You may find the original script files in the IOHK git repository: cardano-node scripts.
In particular, running cardano-db-sync to sync to the private testnet required a few changes to the original scripts provided by IOHK.
Hopefully, this documentation provides a lot of value for others. I welcome your feedback both good and bad!
cardano-node is configured to run 4 CPU cores in parallel.
This configuration may be changed as necessary to fit your system constraints.
Search for cardano-node run in mkfiles.sh to modify.cardano-db-sync connected to your private testnet, you can use SQL queries to view blockchain activity data.cardano-db-sync process syncs blockchain data to a highly normalized database schema. This enables blockchain data to be queried with SQL.For an additional overview of this project, please check out this medium article
Install Cardano executables
cardano-node, cardano-cli, and optionally cardano-db-syncOptional: Install PostgreSQL packages and create Postgres user
cardano-db-sync process uses a connection to a PostgreSQL database.Run scripts to set up & run private Cardano network
Optional: Attach DB Sync process the network
cardano-db-sync process to the network, which syncs blockchain data to a PostgreSQL database.Run simple transaction and optionally query the db-sync database to see results
Run Plutus script transactions
This project is provided free of charge to the Cardano community. The author of this project is a fan of Cardano, as well as a Cardano stake pool operator. I am not affiliated with IOHK in any official capacity.
If you want to support the continued development of this project, you can delegate or recommend my staking pool:
If you'd like to help maintain this project, please feel free to submit a pull request. Please ensure that any script changes have been tested and verified.
This project is licensed under the terms of the MIT License.
Shell
87.6%
Haskell
12.4%