Module l1_client

Module l1_client 

Source
Expand description

L1 (Ethereum) client for interacting with Aztec protocol contracts.

Uses raw JSON-RPC via reqwest to avoid heavy alloy dependencies. Provides wrappers for the Inbox contract’s sendL2Message function.

Structs§

EthClient
A minimal Ethereum JSON-RPC client.
FeeJuiceBridgeResult
Result of preparing Fee Juice on L1 for an L2 claim.
L1ContractAddresses
Parsed L1 contract addresses from node info.
L1ToL2MessageSentResult
Result of sending an L1→L2 message via the Inbox contract.

Functions§

prepare_fee_juice_on_l1
Mint Fee Juice on L1 and bridge it to L2 via the Fee Juice Portal.
send_l1_to_l2_message
Send an L1→L2 message via the Inbox contract.