3 stable releases

new 2.3.0 Apr 28, 2025
2.2.0 Apr 5, 2025
2.1.0 Mar 22, 2025

#11 in #amareleo

Download history 125/week @ 2025-03-19 20/week @ 2025-03-26 141/week @ 2025-04-02 29/week @ 2025-04-09 21/week @ 2025-04-16

224 downloads per month
Used in 3 crates (2 directly)

Apache-2.0 and GPL-3.0 licenses

525KB
6K SLoC

amareleo-chain-api

Crates.io Authors License

The amareleo-chain-api crate provides the interface for Rust applications to programmatically control node instances.

AmareleoApi

The AmareleoApi struct is the main object for interacting with the Amareleo node. It provides methods to configure, start and stop the node.

AmareleoApi is a singleton, which means that there can only be one instance per process. This results from a limitation in snarkVM that is described here.

It is possible to launch multiple nodes and run them in parallel from different processes. To do this one needs to avoid port conflicts and use different ledger storage directories.

AmareleoApi is driven by a state engine defined by the AmareleoApiState enumeration and depicted in the following diagram:

AmareleoApiState

Dependencies

~87MB
~1.5M SLoC