algo_ops
In producing distributed blockchain applications, we found a need for a shared high level interface to a blockchain (initially Algorand).
This crate is part of that interface - it provides the Algorand implementation of the blockchain_ops traits, over algonaut.
AlgoOps covers accounts, payments, Algorand Standard Assets, and the
Transaction Execution Approval Language (TEAL) application lifecycle, and
implements BlockChainOps and AssetOps. Construct it with
AlgoOps::new_for_algorand.
The consumer is expected to be blockchain-aware: the traits cover what reads
naturally on any chain, while Algorand-specific power is reached directly on
AlgoOps or via its native escape hatch (the algonaut client accessors).
Example: print an account balance
AlgoChainConfig::default() targets algokit localnet (algod on
localhost:4001). Start it with algokit localnet start, then:
use ;
The same program is a runnable example — cargo run -p algo_ops --example print_balance -- <ADDRESS>.
Part of the blockchain_ops_rust workspace — see the root README for the full
picture.