amareleo-chain-api

Crates.ioamareleo-chain-api
lib.rsamareleo-chain-api
version2.5.0
created_at2025-03-22 12:15:11.704289+00
updated_at2025-06-19 19:53:39.004214+00
descriptionAPI for a lite Aleo development node
homepagehttps://amareleo.com
repositoryhttps://github.com/kaxxa123/amareleo-chain
max_upload_size
id1601760
size143,875
Alex Zammit (kaxxa123)

documentation

README

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

Commit count: 135

cargo fmt