Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

aztec-rs (umbrella crate)

Top-level crate that re-exports the entire workspace. Depend on this when you want a single dependency; pick individual crates for a slimmer build.

Source: src/lib.rs.

Public Modules

Every module is a curated re-export from one or more workspace crates.

ModuleRe-exports fromPurpose
aztec_rs::abiaztec_core::abiABI types, selectors, artifact loading
aztec_rs::accountaztec_account::*Account abstraction, entrypoints, Schnorr / signerless
aztec_rs::authorizationaztec_account::authorizationAuthwit types
aztec_rs::authwitaztec_contract::authwitAuthwit interaction helpers
aztec_rs::contractaztec_contract::contractContract handles and function calls
aztec_rs::deploymentaztec_contract::deploymentDeployer builder
aztec_rs::erroraztec_core::errorError enum and conversions
aztec_rs::eventsaztec_contract::eventsPublic + private event decoding
aztec_rs::constantsaztec_core::constantsProtocol contract addresses, domain separators
aztec_rs::cryptoaztec_cryptoKeys, Schnorr, Pedersen, Grumpkin primitives
aztec_rs::hashaztec_core::hashPoseidon2 hashing
aztec_rs::feeaztec_core::fee + aztec_feeGas types + payment methods
aztec_rs::cross_chainaztec_ethereum::cross_chainL1↔L2 message readiness polling
aztec_rs::l1_clientaztec_ethereum::l1_clientL1 RPC + Inbox/Outbox
aztec_rs::messagingaztec_ethereum::messagingL1↔L2 message construction
aztec_rs::nodeaztec_node_client::nodeAztecNode, readiness polling, receipts
aztec_rs::pxeaztec_pxe_client::pxePxe trait, readiness, request/response types
aztec_rs::embedded_pxeaztec_pxe::*Embedded PXE runtime
aztec_rs::txaztec_core::txTx, TxReceipt, TxStatus, ExecutionPayload
aztec_rs::typesaztec_core::typesFr, Fq, AztecAddress, EthAddress, PublicKeys
aztec_rs::walletaztec_wallet::*Wallet trait, BaseWallet, AccountProvider

Top-Level Items

  • aztec_rs::Error — re-export of aztec_core::error::Error, the canonical top-level error type used across the workspace.

Quick Start

#![allow(unused)]
fn main() {
use aztec_rs::node::{create_aztec_node_client, wait_for_node, AztecNode};

async fn example() -> Result<(), aztec_rs::Error> {
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}");
Ok(())
}
}

Full API

The complete rustdoc is published alongside this book at api/aztec_rs/. Run cargo doc --open locally to regenerate it.

See Also