Address Book Example
Example of how to use Yahcli to read/update ledger and mirror node address book
The examples section provides information on some examples of how Solo can be used and leveraged.
| Example Directory | Description |
|---|---|
| address-book | Example of using Yahcli to pull the ledger and mirror node address book |
| multicluster-backup-restore | Multi-cluster backup/restore workflow with external PostgreSQL database and distributed consensus nodes |
| custom-network-config | Deploy a Solo network with custom configuration settings (log4j2, properties, etc.) |
| external-database-test | Deploy a Solo network with an external PostgreSQL database |
| hardhat-with-solo | Example of using Hardhat to test a smart contract with a local Solo deployment |
| local-build-with-custom-config | Example of how to create and manage a custom Hiero Hashgraph Solo deployment using locally built consensus nodes |
| network-with-block-node | Deploy a Solo network that includes a block node |
| network-with-domain-names | Setup a network using custom domain names for all components |
| node-create-transaction | Manually write a NodeCreateTransaction and use the add-prepare/prepare-upgrade/freeze-upgrade/add-execute commands. |
| node-delete-transaction | Manually write a NodeDeleteTransaction and use the add-prepare/prepare-upgrade/freeze-upgrade/add-execute commands. |
| node-update-transaction | Manually write a NodeUpdateTransaction and use the add-prepare/prepare-upgrade/freeze-upgrade/add-execute commands. |
| one-shot-falcon | Example of how to use the Solo one-shot falcon commands |
| rapid-fire | Example of how to use the Solo rapid-fire commands |
| state-save-and-restore | Save network state, recreate network, and restore state with mirror node (with optional external database) |
| version-upgrade-test | Example of how to upgrade all components of a Hiero network to current versions |
All examples are available in the examples directory of the Solo repository. You can browse the source code, documentation, and configuration files directly on GitHub.
Pre-packaged example archives are available for download from the Solo releases page. Each example is packaged as a standalone zip file that includes all necessary configuration files and documentation.
To download a specific example:
example-backup-restore-workflow.zip)Example download URL format:
https://github.com/hiero-ledger/solo/releases/download/<release_version>/example-<example-name>.zip
For example, to download the backup-restore-workflow example from release v0.49.0:
https://github.com/hiero-ledger/solo/releases/download/v0.49.0/example-backup-restore-workflow.zip
After downloading, extract the archive and follow the README instructions inside.
npm install -g @go-task/clicd into the directory under examples that has the Taskfile.yml, e.g. (from solo repo root directory) cd examples/network-with-block-node/task which will do the rest and deploy the network and take care of many of the pre-requisitesNOTES:
init-containers-values.yaml: hedera.nodes[]init-containers-values.yaml file and make sure the values are correct for your deployment with special attention to:Example of how to use Yahcli to read/update ledger and mirror node address book
Example of how to create and manage a custom Solo deployment and configure it with custom settings
Example of how to create and manage a custom Hiero Hashgraph Solo deployment using locally built consensus nodes with custom configuration settings
Example demonstrating multi-cluster backup and restore workflow with external PostgreSQL database
example of how to deploy a Solo network with an external PostgreSQL database
Example of how to create and manage a custom Solo deployment and configure it with custom settings
Example of how to deploy a Solo network with custom domain names
Using Solo with a custom NodeCreateTransaction from an SDK call
Using Solo with a custom NodeDeleteTransaction from an SDK call
Using Solo with a custom NodeUpdateTransaction from an SDK call
Example of how to use the Solo one-shot falcon commands.
Example of how to use the Solo rapid-fire commands.
example of how to deploy a Solo network and run Hardhat tests against it
Example of how to save network state and restore it later
Example of how to upgrade all components of a Hedera network to current versions