Crates.io | amareleo-chain |
lib.rs | amareleo-chain |
version | 2.5.0 |
source | src |
created_at | 2025-01-24 17:01:30.476171+00 |
updated_at | 2025-06-19 19:55:53.709708+00 |
description | A lite Aleo development node |
homepage | https://amareleo.com |
repository | https://github.com/kaxxa123/amareleo-chain |
max_upload_size | |
id | 1529708 |
size | 230,264 |
A lite Aleo development node. Starting from the SnarkOS codebase, amareleo-chain
delivers a minimal validator node for testing the deployment and execution of aleo programs.
Key benefits:
Ease of Use – Starting a development testnet is as simple as running amareleo-chain start
. No extra scripts, no multiple processes, all default parameters set for quick aleo program testing.
Lite – Just one process, with minimal memory and CPU usage.
Fast Startup/Shutdown – Drastically reduced node startup and shutdown times.
Fresh Chain State – Start testing programs with a fresh chain state (default) or retain the chain state across tests.
Compatibility – Compatible with other Aleo tools including snarkOS
and leo
.
Amareleo-Chain may be installed from source or from crates.io using cargo. On a fresh machine, installing from source is recommanded as this will also help getting all dependencies installed.
amareleo-chain
was tested on machines with low end specs.
Ubuntu 22.04 (LTS)
11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
16GB RAM
512 GB SSD
If you already installed snarkos
on this machine, all dependencies should be satisfied and you can clone and install amareleo-chain
as follows:
git clone https://github.com/kaxxa123/amareleo-chain.git
cd amareleo-chain
cargo install --locked --path .
Otherwise, ensure your machine has Rust v1.83+
installed. Instructions to install Rust can be found here.. Next clone and install amareleo-chain
as follows:
git clone https://github.com/kaxxa123/amareleo-chain.git
cd amareleo-chain
./build_ubuntu.sh
To start a fresh chain from genesis run:
amareleo-chain start
This will expose a REST server on localhost:3030, supporting the same endpoints as snarkos
.
amareleo-chain
supports the commands:
start
- Starts the amareleo-chain nodeclean
- Cleans the amareleo-chain node storageupdate
- Update amareleo-chainFor snarkos
users, running amareleo-chain start
will look very much like running snarkos start
with the --dev 0 --validator
parameters. Some differences include:
amareleo-chain
drops a lot of the functionality not relevant to aleo program testing. It only supports running a validator, and only runs as a standalone node without peers.
The amareleo-chain
default network is testnet
(--network 1
) rather than mainnet
(--network 0
).
amareleo-chain
supports two modes of operations controlled by the --keep-state
argument. Running amareleo-chain start
, the node will start from genesis and will not preserve the chain state accross runs. Running amareleo-chain start --keep-state
causes it to preserve the chain-state.
amareleo-chain
uses different disk storage locations depending on its mode of operation:
--keep-state |
Disk storage |
---|---|
set | .amareleo-ledger-* |
not set | .amareleo-tmp-ledger-* |
The two modes do not conflict. One can perform multiple runs some setting --keep-state
, others not. All the runs specifying --keep-state
will share the same ledger. This state will keep being preserved until amareleo-chain clean
is run.