| Crates.io | nixie |
| lib.rs | nixie |
| version | 0.1.0 |
| created_at | 2025-09-12 12:07:47.217053+00 |
| updated_at | 2025-09-12 12:07:47.217053+00 |
| description | CLI tool for managing Hydration blockchain forks and Docker containers |
| homepage | https://github.com/enthusiastmartin/nixie |
| repository | https://github.com/enthusiastmartin/nixie |
| max_upload_size | |
| id | 1835637 |
| size | 23,902 |
A CLI tool for managing Hydration blockchain forks and Docker containers.
Nixie is a Rust-based command-line tool that simplifies the management of Hydration blockchain forks using Docker containers. It provides an easy-to-use interface for scraping chainstate, managing Docker containers, and controlling zombienet instances.
# Clone the repository
git clone https://github.com/enthusiastmartin/nixie.git
cd nixie
# Install locally
cargo install --path .
galacticcouncil/fork Docker imagenixie <COMMAND> [OPTIONS]
scrape - Scrape ChainstateScrapes chainstate from a WebSocket URI for a specific block.
nixie scrape --uri <WEBSOCKET_URI> [--at <BLOCK_HASH>]
Example:
nixie scrape --uri wss://1.lark.hydration.cloud --at 0x15c573eaeea039341f6e1df1ecfd70708efa85dced07ad059d58a6234ada5fd7
Options:
--uri <URI> - WebSocket URI to scrape from (required)--at <BLOCK_HASH> - Specific block hash to scrape at (optional)create - Create Docker ImageCreates a new Docker container with the hydration-fork image.
nixie create
This command:
hydration-fork container./data/ directory to the containerstart - Start ZombienetStarts or restarts the zombienet without resetting chainstate.
nixie start
This command:
hydration-fork containerstop - Stop ZombienetStops the running zombienet container.
nixie stop
reset - Reset and StartResets zombienet's state and starts from the last scraped state.
nixie reset
This command:
.
├── data/ # Chainstate data directory
│ └── state.json # Current blockchain state
├── src/
│ └── main.rs # Main application code
├── Cargo.toml # Rust project configuration
└── README.md # This file
Nixie manages a Docker container named hydration-fork that:
galacticcouncil/fork image./data/ for persistent storagenpm run start:raw by defaultThe tool includes comprehensive error handling for:
cargo build
cargo test
cargo run -- <command> [options]
This project is licensed under the MIT OR Apache-2.0 license.
For issues and questions, please open an issue on the GitHub repository.