Mithril client node
Mithril client is responsible for restoring the Cardano blockchain on an empty node from a certified snapshot.
- 
For more information about the Mithril network, please see the architecture overview 
- 
For more information about the Mithril client node, please see this overview 
- 
Check out the Bootstrap a Cardano nodeguide.
The Mithril network configurations are available in the Network configurations section of the user manual.
Resourcesβ
| Node | Source repository | Rust documentation | Docker packages | Network configurations | 
|---|---|---|---|---|
| Mithril client CLI | βοΈ | βοΈ | βοΈ | βοΈ | 
Prerequisitesβ
- Linux / Mac
- Windows
- 
Install the latest stable version of the correctly configured Rust toolchain 
- 
Install build tools build-essentialandm4; for example, on Ubuntu/Debian/Mint, runsudo apt install build-essential m4
- 
Install OpenSSL development libraries; for example, on Ubuntu/Debian/Mint, run apt install libssl-dev.
All Windows commands below are run on PowerShell 5.
- 
Install Visual Studio C++ Build tools (required by the Rust toolchain). 
- 
Install the latest stable version of the correctly configured Rust toolchain 
Download the source fileβ
Download the source file from GitHub (HTTPS):
git clone https://github.com/input-output-hk/mithril.git
Or (SSH):
git clone git@github.com:input-output-hk/mithril.git
Switch to the desired branch/tag:
# Replace **YOUR_BUILD_BRANCH_OR_TAG** with the appropriate branch or tag name
# Please refer to the [**Network configurations**](http://mithril.network/manual/getting-started/network-configurations) section of the user manual
git checkout **YOUR_BUILD_BRANCH_OR_TAG**
Change the directory:
- Linux / Mac
- Windows
cd mithril/mithril-client-cli
cd mithril\mithril-client-cli
Development testing and buildingβ
Run tests:
- Linux / Mac
- Windows
make test
cargo test
Create the help menu:
- Linux / Mac
- Windows
make help
cargo run -- -h
Generate the Rust documentation:
- Linux / Mac
- Windows
make doc
cargo doc --no-deps --open
Run in debug mode with the default configuration:
- Linux / Mac
- Windows
make debug
cargo run
Building for release and running the binaryβ
Build and run in release mode with the default configuration:
- Linux / Mac
- Windows
make run
cargo build --release; copy ..\target\release\mithril-client.exe .; .\mithril-client
Or, build only in release mode:
- Linux / Mac
- Windows
make build
cargo build --release; copy ..\target\release\mithril-client.exe .
Display the help menu:
- Linux / Mac
- Windows
./mithril-client --help
.\mithril-client --help
You should see:
This program shows, downloads and verifies certified blockchain artifacts.
Usage: mithril-client [OPTIONS] <COMMAND>
Commands:
  cardano-db                  Cardano db management (alias: cdb)
  mithril-stake-distribution  Mithril stake distribution management (alias: msd)
  cardano-transaction         Cardano transactions management (alias: ctx)
  cardano-stake-distribution  Cardano stake distribution management (alias: csd)
  tools                       Tools commands
  help                        Print this message or the help of the given subcommand(s)
Options:
      --run-mode <RUN_MODE>
          Run Mode [env: RUN_MODE=] [default: dev]
  -v, --verbose...
          Verbosity level (-v=warning, -vv=info, -vvv=debug, -vvvv=trace)
      --config-directory <CONFIG_DIRECTORY>
          Directory where configuration file is located [default: ./config]
      --aggregator-endpoint <AGGREGATOR_ENDPOINT>
          Override configuration Aggregator endpoint URL [env: AGGREGATOR_ENDPOINT=]
      --json
          Enable JSON output for command results
      --log-format-json
          Enable JSON output for logs displayed according to verbosity level
      --log-output <LOG_OUTPUT>
          Redirect the logs to a file
      --unstable
          Enable unstable commands
      --origin-tag <ORIGIN_TAG>
          Request origin tag
      --era <ERA>
          Override the Mithril era
  -h, --help
          Print help
  -V, --version
          Print version
Run in release mode with the default configuration:
- Linux / Mac
- Windows
./mithril-client
.\mithril-client
Run in release mode with a specific mode:
- Linux / Mac
- Windows
./mithril-client --run-mode preview
.\mithril-client --run-mode preview
Run in release mode with a custom configuration using environment variables:
- Linux / Mac
- Windows
GENESIS_VERIFICATION_KEY=$(wget -q -O - **YOUR_GENESIS_VERIFICATION_KEY**) AGGREGATOR_ENDPOINT=**YOUR_AGGREGATOR_ENDPOINT** ./mithril-client
$env:GENESIS_VERIFICATION_KEY = curl.exe --silent - **YOUR_GENESIS_VERIFICATION_KEY**; $env:AGGREGATOR_ENDPOINT=**YOUR_AGGREGATOR_ENDPOINT**; .\mithril-client
To display results in JSON format for the list and show commands, simply use the --json (or -j) option:
- Linux / Mac
- Windows
./mithril-client cardano-db snapshot list --json
.\mithril-client cardano-db snapshot list --json
If you wish to delve deeper and access several levels of logs from the Mithril client, use the following:
- Add -vfor some logs (WARN)
- Add -vvfor more logs (INFO)
- Add -vvvfor even more logs (DEBUG)
- Add -vvvvfor all logs (TRACE).
Download the pre-built binaryβ
- Linux / Mac
- Windows
You can install a the latest released binary of the mithril-client by running this one line command (replace YOUR_PATH with your installation path):
curl --proto '=https' --tlsv1.2 -sSf
https://raw.githubusercontent.com/input-output-hk/mithril/refs/heads/main/mithril-install.sh
| sh -s -- -c mithril-client -d latest -p YOUR_PATH
You can also install the mithril-client binary for other distributions:
- use -d unstablefor the unstable version
- use -d **DISTRIBUTION_VERSION**for a specific distribution (e.g.-d 2445.0)
The Linux binaries target glibc, and have a minimum requirement of glibc 2.35 (compatible with Ubuntu 22.04
or Debian 12 - Bookworm).
Each distribution (pre-)release comes with pre-compiled binaries ready to use. You can download them from the distribution (pre-)release distribution page on GitHub that depends on the Mithril network you are targeting. These links are available in the Build from field in the network configurations table.
Run a Docker containerβ
Registry imageβ
A list of available images on the registry can be found here.
To prepare the environment variables, retrieve the values from the Mithril networks section.
- Linux / Mac
- Windows
export MITHRIL_IMAGE_ID=**YOUR_MITHRIL_IMAGE_ID**
export AGGREGATOR_ENDPOINT=**YOUR_AGGREGATOR_ENDPOINT**
export GENESIS_VERIFICATION_KEY=$(wget -q -O - **YOUR_GENESIS_VERIFICATION_KEY**)
export SNAPSHOT_DIGEST=latest
$env:MITHRIL_IMAGE_ID="**YOUR_MITHRIL_IMAGE_ID**"
$env:AGGREGATOR_ENDPOINT="**YOUR_AGGREGATOR_ENDPOINT**"
$env:GENESIS_VERIFICATION_KEY = curl.exe --silent - **YOUR_GENESIS_VERIFICATION_KEY**
$env:SNAPSHOT_DIGEST="latest"
Here is an example configuration for the release-preprod network and the latest stable Docker image:
- Linux / Mac
- Windows
export MITHRIL_IMAGE_ID=latest
export AGGREGATOR_ENDPOINT=https://aggregator.release-preprod.api.mithril.network/aggregator
export GENESIS_VERIFICATION_KEY=$(wget -q -O - https://raw.githubusercontent.com/input-output-hk/mithril/main/mithril-infra/configuration/release-preprod/genesis.vkey)
export SNAPSHOT_DIGEST=latest
$env:MITHRIL_IMAGE_ID="latest"
$env:AGGREGATOR_ENDPOINT="https://aggregator.release-preprod.api.mithril.network/aggregator"
$env:GENESIS_VERIFICATION_KEY = curl.exe --silent - https://raw.githubusercontent.com/input-output-hk/mithril/main/mithril-infra/configuration/release-preprod/genesis.vkey
$env:SNAPSHOT_DIGEST="latest"
Proceed by creating a shell function for the Mithril client:
- Linux / Mac
- Windows
mithril_client () {
  docker run --rm -e GENESIS_VERIFICATION_KEY=$GENESIS_VERIFICATION_KEY -e AGGREGATOR_ENDPOINT=$AGGREGATOR_ENDPOINT --name='mithril-client' -v $(pwd):/app/data -w /app/data -u $(id -u) ghcr.io/input-output-hk/mithril-client:$MITHRIL_IMAGE_ID $@
}
function mithril_client {
  docker run --rm -e GENESIS_VERIFICATION_KEY=$env:GENESIS_VERIFICATION_KEY -e AGGREGATOR_ENDPOINT=$env:AGGREGATOR_ENDPOINT --name='mithril-client' -v ${PWD}:/app/data -w /app/data ghcr.io/input-output-hk/mithril-client:$env:MITHRIL_IMAGE_ID $args
}
Now you can use the mithril_client functions:
# 1- Help
mithril_client help
# 2- List Cardano db snapshots
mithril_client cardano-db snapshot list
# 3- Show detailed information about a Cardano db snapshot
mithril_client cardano-db snapshot show $CARDANO_DB_DIGEST
# 4- Download the given Cardano db and verify the certificate
mithril_client cardano-db download --include-ancillary --ancillary-verification-key $ANCILLARY_VERIFICATION_KEY $CARDANO_DB_DIGEST
# 5- List Mithril stake distributions
mithril_client mithril-stake-distribution list
# 6- Download and verify the given Mithril stake distribution
mithril_client mithril-stake-distribution download $MITHRIL_STAKE_DISTRIBUTION_ARTIFACT_HASH
# 7- List Cardano transaction snapshots
mithril_client cardano-transaction snapshot list
# 8- Show detailed information about a Cardano transaction snapshot
mithril_client cardano-transaction snapshot show $CARDANO_TRANSACTION_SNAPSHOT_HASH
# 9- Certify that the given list of transactions hashes are included in the Cardano transactions set
mithril_client cardano-transaction certify $TRANSACTION_HASH_1,$TRANSACTION_HASH_2
# 10- List Cardano stake distributions
mithril_client cardano-stake-distribution list
# 11 - Download and verify the given Cardano stake distribution from its hash or epoch
mithril_client cardano-stake-distribution download $UNIQUE_IDENTIFIER
Local imageβ
Build a local Docker image:
- Linux / Mac
- Windows
make docker-build
pushd ..\; docker build -t mithril/mithril-client -f mithril-client-cli\Dockerfile . ; popd
Run a local Docker container:
- Linux / Mac
- Windows
make docker-run
docker run --rm --name='mithril-client' mithril/mithril-client
Subcommandsβ
Here are the subcommands available:
Cardano DBβ
| Subcommand | Performed action | 
|---|---|
| download | Downloads and restores a cardano-db snapshot | 
| verify | Verifies an existing Cardano database ( v2backend only) | 
| help | Prints this message or the help for the given subcommand(s) | 
| snapshot list | Lists available cardano-db snapshots | 
| snapshot show | Shows information about a cardano-db snapshot | 
Mithril stake distributionβ
| Subcommand | Performed action | 
|---|---|
| download | Downloads and verifies Mithril stake distribution | 
| help | Prints this message or the help for the given subcommand(s) | 
| list | Lists available Mithril stake distributions | 
Cardano transactionsβ
| Subcommand | Performed action | 
|---|---|
| certify | Certifies that given list of transactions hashes are included in the Cardano transactions set | 
| snapshot list | Lists available Cardano transactions snapshots | 
| snapshot show | Shows information about a Cardano transactions snapshot | 
| help | Prints this message or the help for the given subcommand(s) | 
Cardano stake distributionβ
| Subcommand | Performed action | 
|---|---|
| download | Downloads and verifies Cardano stake distribution | 
| help | Prints this message or the help for the given subcommand(s) | 
| list | Lists available Cardano stake distributions | 
Toolsβ
| Subcommand | Performed action | 
|---|---|
| utxo-hd | UTxO-HD related commands (e.g., converting a ledger state snapshot to another flavor) | 
| help | Prints this message or the help for the given subcommand(s) | 
Configuration parametersβ
The configuration parameters can be set in either of the following ways:
- 
In a configuration file, depending on the --run-modeparameter. If the runtime mode istestnet, the file is located in./conf/testnet.json.
- 
The value can be overridden by an environment variable with the parameter name in uppercase. 
Here is a list of the available parameters:
| Parameter | Command line (long) | Command line (short) | Environment variable | Description | Default value | Example | Mandatory | 
|---|---|---|---|---|---|---|---|
| verbose | --verbose | -v | - | Verbosity level | - | Parsed from the number of occurrences: -vforWarning,-vvforInfo,-vvvforDebugand-vvvvforTrace | βοΈ | 
| unstable | --unstable | - | - | Enable unstable commands | false | - | - | 
| run_mode | --run-mode | - | RUN_MODE | Run Mode | dev | - | βοΈ | 
| aggregator_endpoint | --aggregator-endpoint | - | AGGREGATOR_ENDPOINT | Override configuration Aggregator endpoint URL | - | https://aggregator.pre-release-preview.api.mithril.network/aggregator | βοΈ | 
| json | --json | - | - | Enable JSON output for command results | false | - | - | 
| log_format_json | --log-format-json | - | - | Enable JSON output for logs displayed according to verbosity level | false | - | - | 
| log_output | --log-output | - | - | Redirect the logs to a file | - | - | - | 
| origin_tag | --origin-tag | - | - | Request origin tag | - | - | - | 
| era | --era | - | - | Override the Mithril era | - | - | - | 
| version | --version | -V | - | Print version | - | ./mithril-client.log | - | 
cardano-db snapshot show command:
| Parameter | Command line (long) | Command line (short) | Environment variable | Description | Default value | Example | Mandatory | 
|---|---|---|---|---|---|---|---|
| backend | --backend | -b | - | Backend to use, either: v1(default, full database restoration only) orv2(full or partial database restoration) | v1 | - | - | 
| digest | - | - | - | Digest of the Cardano db snapshot to show or latestfor the latest artifact | - | - | βοΈ | 
| run_mode | --run-mode | - | RUN_MODE | Run Mode | dev | - | - | 
| verbose | --verbose | -v | - | Verbosity level (-v=warning, -vv=info, -vvv=debug, -vvvv=trace) | 0 | - | - | 
| config_directory | --config-directory | - | - | Directory where configuration file is located | ./config | - | - | 
| aggregator_endpoint | --aggregator-endpoint | - | AGGREGATOR_ENDPOINT | Override configuration Aggregator endpoint URL | - | - | - | 
| json | --json | - | - | Enable JSON output for command results | false | - | - | 
| log_format_json | --log-format-json | - | - | Enable JSON output for logs displayed according to verbosity level | false | - | - | 
| log_output | --log-output | - | - | Redirect the logs to a file | - | - | - | 
| unstable | --unstable | - | - | Enable unstable commands | false | - | - | 
| origin_tag | --origin-tag | - | - | Request origin tag | - | - | - | 
| era | --era | - | - | Override the Mithril era | - | - | - | 
| help | --help | -h | - | Print help (see more with '--help') | - | - | - | 
cardano-db snapshot list command:
| Parameter | Command line (long) | Command line (short) | Environment variable | Description | Default value | Example | Mandatory | 
|---|---|---|---|---|---|---|---|
| backend | --backend | -b | - | Backend to use, either: v1(default, full database restoration only) orv2(full or partial database restoration) | v1 | - | - | 
| run_mode | --run-mode | - | RUN_MODE | Run Mode | dev | - | - | 
| verbose | --verbose | -v | - | Verbosity level (-v=warning, -vv=info, -vvv=debug, -vvvv=trace) | 0 | - | - | 
| config_directory | --config-directory | - | - | Directory where configuration file is located | ./config | - | - | 
| aggregator_endpoint | --aggregator-endpoint | - | AGGREGATOR_ENDPOINT | Override configuration Aggregator endpoint URL | - | - | - | 
| json | --json | - | - | Enable JSON output for command results | false | - | - | 
| log_format_json | --log-format-json | - | - | Enable JSON output for logs displayed according to verbosity level | false | - | - | 
| log_output | --log-output | - | - | Redirect the logs to a file | - | - | - | 
| unstable | --unstable | - | - | Enable unstable commands | false | - | - | 
| origin_tag | --origin-tag | - | - | Request origin tag | - | - | - | 
| era | --era | - | - | Override the Mithril era | - | - | - | 
| help | --help | -h | - | Print help (see more with '--help') | - | - | - | 
cardano-db download command:
| Parameter | Command line (long) | Command line (short) | Environment variable | Description | Default value | Example | Mandatory | 
|---|---|---|---|---|---|---|---|
| backend | --backend | -b | - | Backend to use, either: v1(default, full database restoration only) orv2(full or partial database restoration) | v1 | - | - | 
| digest | - | - | - | Digest of the Cardano db snapshot to download or latestfor the latest artifact | - | - | βοΈ | 
| download_dir | --download-dir | - | - | Directory where the immutable and ancillary files will be downloaded | - | - | - | 
| genesis_verification_key | --genesis-verification-key | - | GENESIS_VERIFICATION_KEY | Genesis verification key to check the certificate chain | - | - | βοΈ | 
| include_ancillary | --include-ancillary | - | - | Include ancillary files in the download, if set the ancillary_verification_keyis required in order to verify the ancillary files | false | - | - | 
| ancillary_verification_key | --ancillary-verification-key | - | ANCILLARY_VERIFICATION_KEY | Ancillary verification key to verify the ancillary files | - | - | - | 
| start | --start | - | - | [backend v2only] The first immutable file number to download | - | - | - | 
| end | --end | - | - | [backend v2only] The last immutable file number to download | - | - | - | 
| allow_override | --allow-override | - | - | [backend v2only] Allow existing files in the download directory to be overridden | false | - | - | 
| run_mode | --run-mode | - | RUN_MODE | Run Mode | dev | - | - | 
| verbose | --verbose | -v | - | Verbosity level (-v=warning, -vv=info, -vvv=debug, -vvvv=trace) | 0 | - | - | 
| config_directory | --config-directory | - | - | Directory where configuration file is located | ./config | - | - | 
| aggregator_endpoint | --aggregator-endpoint | - | AGGREGATOR_ENDPOINT | Override configuration Aggregator endpoint URL | - | - | - | 
| json | --json | - | - | Enable JSON output for command results | false | - | - | 
| log_format_json | --log-format-json | - | - | Enable JSON output for logs displayed according to verbosity level | false | - | - | 
| log_output | --log-output | - | - | Redirect the logs to a file | - | - | - | 
| unstable | --unstable | - | - | Enable unstable commands | false | - | - | 
| origin_tag | --origin-tag | - | - | Request origin tag | - | - | - | 
| era | --era | - | - | Override the Mithril era | - | - | - | 
| help | --help | -h | - | Print help (see more with '--help') | - | - | - | 
cardano-db verify command (v2 backend only):
| Parameter | Command line (long) | Command line (short) | Environment variable | Description | Default value | Example | Mandatory | 
|---|---|---|---|---|---|---|---|
| backend | --backend | -b | - | Backend to use, either: v1(default, full database restoration only) orv2(full or partial database restoration) | v2 | - | - | 
| digest | - | - | - | Digest of the Cardano db snapshot to verify or latestfor the latest artifact | - | - | βοΈ | 
| db_dir | --db-dir | - | - | Directory from where the immutable will be verified | - | - | - | 
| genesis_verification_key | --genesis-verification-key | - | GENESIS_VERIFICATION_KEY | Genesis verification key to check the certificate chain | - | - | - | 
| start | --start | - | - | The first immutable file number to verify | - | - | - | 
| end | --end | - | - | The last immutable file number to verify | - | - | - | 
| allow_missing | --allow-missing | - | - | If set, the verification will not fail if some immutable files are missing | false | - | - | 
| run_mode | --run-mode | - | RUN_MODE | Run Mode | dev | - | - | 
| verbose | --verbose | -v | - | Verbosity level (-v=warning, -vv=info, -vvv=debug, -vvvv=trace) | 0 | - | - | 
| config_directory | --config-directory | - | - | Directory where configuration file is located | ./config | - | - | 
| aggregator_endpoint | --aggregator-endpoint | - | AGGREGATOR_ENDPOINT | Override configuration Aggregator endpoint URL | - | - | - | 
| json | --json | - | - | Enable JSON output for command results | false | - | - | 
| log_format_json | --log-format-json | - | - | Enable JSON output for logs displayed according to verbosity level | false | - | - | 
| log_output | --log-output | - | - | Redirect the logs to a file | - | - | - | 
| unstable | --unstable | - | - | Enable unstable commands | false | - | - | 
| origin_tag | --origin-tag | - | - | Request origin tag | - | - | - | 
| era | --era | - | - | Override the Mithril era | - | - | - | 
| help | --help | -h | - | Print help (see more with '--help') | - | - | - | 
mithril-stake-distribution list command:
| Parameter | Command line (long) | Command line (short) | Environment variable | Description | Default value | Example | Mandatory | 
|---|---|---|---|---|---|---|---|
| run_mode | --run-mode | - | RUN_MODE | Run Mode | dev | - | - | 
| verbose | --verbose | -v | - | Verbosity level (-v=warning, -vv=info, -vvv=debug, -vvvv=trace) | 0 | - | - | 
| config_directory | --config-directory | - | - | Directory where configuration file is located | ./config | - | - | 
| aggregator_endpoint | --aggregator-endpoint | - | AGGREGATOR_ENDPOINT | Override configuration Aggregator endpoint URL | - | - | - | 
| json | --json | - | - | Enable JSON output for command results | false | - | - | 
| log_format_json | --log-format-json | - | - | Enable JSON output for logs displayed according to verbosity level | false | - | - | 
| log_output | --log-output | - | - | Redirect the logs to a file | - | - | - | 
| unstable | --unstable | - | - | Enable unstable commands | false | - | - | 
| origin_tag | --origin-tag | - | - | Request origin tag | - | - | - | 
| era | --era | - | - | Override the Mithril era | - | - | - | 
| help | --help | -h | - | Print help | - | - | - | 
mithril-stake-distribution download command:
| Parameter | Command line (long) | Command line (short) | Environment variable | Description | Default value | Example | Mandatory | 
|---|---|---|---|---|---|---|---|
| artifact_hash | - | - | - | Hash of the Mithril stake distribution artifact, or latestfor the latest artifact | - | - | βοΈ | 
| download_dir | --download-dir | - | - | Directory where the Mithril stake distribution will be downloaded | - | - | - | 
| genesis_verification_key | --genesis-verification-key | - | GENESIS_VERIFICATION_KEY | Genesis verification key to check the certificate chain | - | - | βοΈ | 
| run_mode | --run-mode | - | RUN_MODE | Run Mode | dev | - | - | 
| verbose | --verbose | -v | - | Verbosity level (-v=warning, -vv=info, -vvv=debug, -vvvv=trace) | 0 | - | - | 
| config_directory | --config-directory | - | - | Directory where configuration file is located | ./config | - | - | 
| aggregator_endpoint | --aggregator-endpoint | - | AGGREGATOR_ENDPOINT | Override configuration Aggregator endpoint URL | - | - | - | 
| json | --json | - | - | Enable JSON output for command results | false | - | - | 
| log_format_json | --log-format-json | - | - | Enable JSON output for logs displayed according to verbosity level | false | - | - | 
| log_output | --log-output | - | - | Redirect the logs to a file | - | - | - | 
| unstable | --unstable | - | - | Enable unstable commands | false | - | - | 
| origin_tag | --origin-tag | - | - | Request origin tag | - | - | - | 
| era | --era | - | - | Override the Mithril era | - | - | - | 
| help | --help | -h | - | Print help (see more with '--help') | - | - | - | 
cardano-transaction snapshot show command:
| Parameter | Command line (long) | Command line (short) | Environment variable | Description | Default value | Example | Mandatory | 
|---|---|---|---|---|---|---|---|
| hash | - | - | - | Hash of the Cardano transaction snapshot to show or latestfor the latest artifact | - | - | βοΈ | 
| run_mode | --run-mode | - | RUN_MODE | Run Mode | dev | - | - | 
| verbose | --verbose | -v | - | Verbosity level (-v=warning, -vv=info, -vvv=debug, -vvvv=trace) | 0 | - | - | 
| config_directory | --config-directory | - | - | Directory where configuration file is located | ./config | - | - | 
| aggregator_endpoint | --aggregator-endpoint | - | AGGREGATOR_ENDPOINT | Override configuration Aggregator endpoint URL | - | - | - | 
| json | --json | - | - | Enable JSON output for command results | false | - | - | 
| log_format_json | --log-format-json | - | - | Enable JSON output for logs displayed according to verbosity level | false | - | - | 
| log_output | --log-output | - | - | Redirect the logs to a file | - | - | - | 
| unstable | --unstable | - | - | Enable unstable commands | false | - | - | 
| origin_tag | --origin-tag | - | - | Request origin tag | - | - | - | 
| era | --era | - | - | Override the Mithril era | - | - | - | 
| help | --help | -h | - | Print help | - | - | - | 
cardano-transaction snapshot list command:
| Parameter | Command line (long) | Command line (short) | Environment variable | Description | Default value | Example | Mandatory | 
|---|---|---|---|---|---|---|---|
| run_mode | --run-mode | - | RUN_MODE | Run Mode | dev | - | - | 
| verbose | --verbose | -v | - | Verbosity level (-v=warning, -vv=info, -vvv=debug, -vvvv=trace) | 0 | - | - | 
| config_directory | --config-directory | - | - | Directory where configuration file is located | ./config | - | - | 
| aggregator_endpoint | --aggregator-endpoint | - | AGGREGATOR_ENDPOINT | Override configuration Aggregator endpoint URL | - | - | - | 
| json | --json | - | - | Enable JSON output for command results | false | - | - | 
| log_format_json | --log-format-json | - | - | Enable JSON output for logs displayed according to verbosity level | false | - | - | 
| log_output | --log-output | - | - | Redirect the logs to a file | - | - | - | 
| unstable | --unstable | - | - | Enable unstable commands | false | - | - | 
| origin_tag | --origin-tag | - | - | Request origin tag | - | - | - | 
| era | --era | - | - | Override the Mithril era | - | - | - | 
| help | --help | -h | - | Print help | - | - | - | 
cardano-transaction certify command:
| Parameter | Command line (long) | Command line (short) | Environment variable | Description | Default value | Example | Mandatory | 
|---|---|---|---|---|---|---|---|
| genesis_verification_key | --genesis-verification-key | - | GENESIS_VERIFICATION_KEY | Genesis verification key to check the certificate chain | - | - | βοΈ | 
| transactions_hashes | - | - | - | Hashes of the transactions to certify | - | - | βοΈ | 
| run_mode | --run-mode | - | RUN_MODE | Run Mode | dev | - | - | 
| verbose | --verbose | -v | - | Verbosity level (-v=warning, -vv=info, -vvv=debug, -vvvv=trace) | 0 | - | - | 
| config_directory | --config-directory | - | - | Directory where configuration file is located | ./config | - | - | 
| aggregator_endpoint | --aggregator-endpoint | - | AGGREGATOR_ENDPOINT | Override configuration Aggregator endpoint URL | - | - | - | 
| json | --json | - | - | Enable JSON output for command results | false | - | - | 
| log_format_json | --log-format-json | - | - | Enable JSON output for logs displayed according to verbosity level | false | - | - | 
| log_output | --log-output | - | - | Redirect the logs to a file | - | - | - | 
| unstable | --unstable | - | - | Enable unstable commands | false | - | - | 
| origin_tag | --origin-tag | - | - | Request origin tag | - | - | - | 
| era | --era | - | - | Override the Mithril era | - | - | - | 
| help | --help | -h | - | Print help | - | - | - | 
cardano-stake-distribution list command:
| Parameter | Command line (long) | Command line (short) | Environment variable | Description | Default value | Example | Mandatory | 
|---|---|---|---|---|---|---|---|
| run_mode | --run-mode | - | RUN_MODE | Run Mode | dev | - | - | 
| verbose | --verbose | -v | - | Verbosity level (-v=warning, -vv=info, -vvv=debug, -vvvv=trace) | 0 | - | - | 
| config_directory | --config-directory | - | - | Directory where configuration file is located | ./config | - | - | 
| aggregator_endpoint | --aggregator-endpoint | - | AGGREGATOR_ENDPOINT | Override configuration Aggregator endpoint URL | - | - | - | 
| json | --json | - | - | Enable JSON output for command results | false | - | - | 
| log_format_json | --log-format-json | - | - | Enable JSON output for logs displayed according to verbosity level | false | - | - | 
| log_output | --log-output | - | - | Redirect the logs to a file | - | - | - | 
| unstable | --unstable | - | - | Enable unstable commands | false | - | - | 
| origin_tag | --origin-tag | - | - | Request origin tag | - | - | - | 
| era | --era | - | - | Override the Mithril era | - | - | - | 
| help | --help | -h | - | Print help | - | - | - | 
cardano-stake-distribution download command:
| Parameter | Command line (long) | Command line (short) | Environment variable | Description | Default value | Example | Mandatory | 
|---|---|---|---|---|---|---|---|
| unique_identifier | - | - | - | Hash or Epoch of the Cardano stake distribution artifact, or latestfor the latest artifact | - | - | βοΈ | 
| download_dir | --download-dir | - | - | Directory where the Cardano stake distribution will be downloaded | - | - | - | 
| genesis_verification_key | --genesis-verification-key | - | GENESIS_VERIFICATION_KEY | Genesis verification key to check the certificate chain | - | - | βοΈ | 
| run_mode | --run-mode | - | RUN_MODE | Run Mode | dev | - | - | 
| verbose | --verbose | -v | - | Verbosity level (-v=warning, -vv=info, -vvv=debug, -vvvv=trace) | 0 | - | - | 
| config_directory | --config-directory | - | - | Directory where configuration file is located | ./config | - | - | 
| aggregator_endpoint | --aggregator-endpoint | - | AGGREGATOR_ENDPOINT | Override configuration Aggregator endpoint URL | - | - | - | 
| json | --json | - | - | Enable JSON output for command results | false | - | - | 
| log_format_json | --log-format-json | - | - | Enable JSON output for logs displayed according to verbosity level | false | - | - | 
| log_output | --log-output | - | - | Redirect the logs to a file | - | - | - | 
| unstable | --unstable | - | - | Enable unstable commands | false | - | - | 
| origin_tag | --origin-tag | - | - | Request origin tag | - | - | - | 
| era | --era | - | - | Override the Mithril era | - | - | - | 
| help | --help | -h | - | Print help (see more with '--help') | - | - | - | 
tools utxo-hd snapshot-converter command:
This command is not compatible with Linux ARM environments.
| Parameter | Command line (long) | Command line (short) | Environment variable | Description | Default value | Example | Mandatory | 
|---|---|---|---|---|---|---|---|
| db_directory | --db-directory | - | - | Path to the Cardano node database directory | - | - | βοΈ | 
| cardano_node_version | --cardano-node-version | - | - | Cardano node version of the Mithril signed snapshot ( latestandpre-releaseare also supported to download the latest or pre-release distribution). | - | - | βοΈ | 
| cardano_network | --cardano-network | - | - | Cardano network | - | - | - | 
| utxo_hd_flavor | --utxo-hd-flavor | - | - | UTxO-HD flavor to convert the ledger snapshot to ( LegacyorLMDB) | - | - | βοΈ | 
| commit | --commit | - | - | Replaces the current ledger state in the db_directory. | false | - | - | 
| github_token | --github-token | - | GITHUB_TOKEN | GitHub token for authenticated API calls | - | - | - | 
| run_mode | --run-mode | - | RUN_MODE | Run Mode | dev | - | - | 
| verbose | --verbose | -v | - | Verbosity level (-v=warning, -vv=info, -vvv=debug, -vvvv=trace) | 0 | - | - | 
| config_directory | --config-directory | - | - | Directory where configuration file is located | ./config | - | - | 
| aggregator_endpoint | --aggregator-endpoint | - | AGGREGATOR_ENDPOINT | Override configuration Aggregator endpoint URL | - | - | - | 
| json | --json | - | - | Enable JSON output for command results | false | - | - | 
| log_format_json | --log-format-json | - | - | Enable JSON output for logs displayed according to verbosity level | false | - | - | 
| log_output | --log-output | - | - | Redirect the logs to a file | - | - | - | 
| unstable | --unstable | - | - | Enable unstable commands | false | - | - | 
| origin_tag | --origin-tag | - | - | Request origin tag | - | - | - | 
| era | --era | - | - | Override the Mithril era | - | - | - | 
| help | --help | -h | - | Print help (see more with '--help') | - | - | - |