Expand description
Rust runtime and client workspace for the Aztec Network.
aztec-rs re-exports the full workspace: an embedded PXE runtime, wallet
and account layers, node and Ethereum clients, contract tooling, and core
Aztec types.
For Aztec v4.x, PXE runs client-side. This repository includes that runtime
in aztec-pxe; it is not just a thin wrapper around node RPC.
§Quick Start
use aztec_rs::node::{create_aztec_node_client, wait_for_node, AztecNode};
let node = create_aztec_node_client("http://localhost:8080");
let info = wait_for_node(&node).await?;
println!("Connected to node v{}", info.node_version);
let block = node.get_block_number().await?;
println!("Current block: {block}");Modules§
- abi
- ABI types, selectors, and contract artifact loading.
- account
- Account abstraction: traits, account manager, and deployment.
- authorization
- Authorization witness types and helpers.
- authwit
- Authwit interaction helpers (public authwit, validity checking).
- constants
- Protocol contract addresses and constants.
- contract
- Contract handles and function interactions.
- cross_
chain - Cross-chain utilities (L1↔L2 message readiness). Cross-chain utilities for L1↔L2 message readiness checking.
- crypto
- Cryptographic primitives and key derivation.
- deployment
- Contract deployment helpers and deployer builder.
- embedded_
pxe - Embedded PXE implementation (in-process, client-side).
- error
- Crate-level error types.
- events
- Public and private event types and decoding.
- fee
- Gas and fee payment types.
- hash
- Poseidon2 hash functions and authwit hash computation.
- l1_
client - L1 client for Inbox/Outbox contract interaction. L1 (Ethereum) client for interacting with Aztec protocol contracts.
- messaging
- L1-L2 messaging helpers. L1↔L2 messaging types and utilities.
- node
- Node client, readiness polling, and receipt waiting.
- pxe
- PXE client, readiness polling, and PXE trait.
- tx
- Transaction types, receipts, statuses, and execution payloads.
- types
- Core field, address, key, and contract instance types.
- wallet
- Wallet trait,
BaseWallet, and account provider abstractions.
Enums§
- Error
- Crate-level error type for aztec-rs.