pub struct HttpNodeClient { /* private fields */ }Expand description
HTTP JSON-RPC backed Aztec node client.
Trait Implementations§
Source§impl AztecNode for HttpNodeClient
impl AztecNode for HttpNodeClient
Source§fn get_node_info<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<NodeInfo, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
HttpNodeClient: 'async_trait,
fn get_node_info<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<NodeInfo, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
HttpNodeClient: 'async_trait,
Fetch information about the node’s current state.
Source§fn get_block_number<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
HttpNodeClient: 'async_trait,
fn get_block_number<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
HttpNodeClient: 'async_trait,
Get the latest block number.
Source§fn get_proven_block_number<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
HttpNodeClient: 'async_trait,
fn get_proven_block_number<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
HttpNodeClient: 'async_trait,
Get the latest proven block number.
Source§fn get_tx_receipt<'life0, 'life1, 'async_trait>(
&'life0 self,
tx_hash: &'life1 TxHash,
) -> Pin<Box<dyn Future<Output = Result<TxReceipt, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
HttpNodeClient: 'async_trait,
fn get_tx_receipt<'life0, 'life1, 'async_trait>(
&'life0 self,
tx_hash: &'life1 TxHash,
) -> Pin<Box<dyn Future<Output = Result<TxReceipt, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
HttpNodeClient: 'async_trait,
Get the receipt for a transaction.
Source§fn get_public_logs<'life0, 'async_trait>(
&'life0 self,
filter: PublicLogFilter,
) -> Pin<Box<dyn Future<Output = Result<PublicLogsResponse, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
HttpNodeClient: 'async_trait,
fn get_public_logs<'life0, 'async_trait>(
&'life0 self,
filter: PublicLogFilter,
) -> Pin<Box<dyn Future<Output = Result<PublicLogsResponse, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
HttpNodeClient: 'async_trait,
Query public logs matching the given filter.
Source§fn send_tx<'life0, 'life1, 'async_trait>(
&'life0 self,
tx: &'life1 Value,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
HttpNodeClient: 'async_trait,
fn send_tx<'life0, 'life1, 'async_trait>(
&'life0 self,
tx: &'life1 Value,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
HttpNodeClient: 'async_trait,
Send a proven transaction to the network for inclusion.
Source§fn get_contract<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 AztecAddress,
) -> Pin<Box<dyn Future<Output = Result<Option<ContractInstanceWithAddress>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
HttpNodeClient: 'async_trait,
fn get_contract<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 AztecAddress,
) -> Pin<Box<dyn Future<Output = Result<Option<ContractInstanceWithAddress>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
HttpNodeClient: 'async_trait,
Get a publicly deployed contract instance by address.
Source§fn get_contract_class<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 Fr,
) -> Pin<Box<dyn Future<Output = Result<Option<Value>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
HttpNodeClient: 'async_trait,
fn get_contract_class<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 Fr,
) -> Pin<Box<dyn Future<Output = Result<Option<Value>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
HttpNodeClient: 'async_trait,
Get a publicly registered contract class by ID.
Source§fn get_block_header<'life0, 'async_trait>(
&'life0 self,
block_number: u64,
) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
HttpNodeClient: 'async_trait,
fn get_block_header<'life0, 'async_trait>(
&'life0 self,
block_number: u64,
) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
HttpNodeClient: 'async_trait,
Get a block header by block number (0 = latest).
Source§fn get_block<'life0, 'async_trait>(
&'life0 self,
block_number: u64,
) -> Pin<Box<dyn Future<Output = Result<Option<Value>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
HttpNodeClient: 'async_trait,
fn get_block<'life0, 'async_trait>(
&'life0 self,
block_number: u64,
) -> Pin<Box<dyn Future<Output = Result<Option<Value>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
HttpNodeClient: 'async_trait,
Get a full block by block number.
Source§fn get_note_hash_membership_witness<'life0, 'life1, 'async_trait>(
&'life0 self,
block_number: u64,
note_hash: &'life1 Fr,
) -> Pin<Box<dyn Future<Output = Result<Option<Value>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
HttpNodeClient: 'async_trait,
fn get_note_hash_membership_witness<'life0, 'life1, 'async_trait>(
&'life0 self,
block_number: u64,
note_hash: &'life1 Fr,
) -> Pin<Box<dyn Future<Output = Result<Option<Value>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
HttpNodeClient: 'async_trait,
Get a note-hash membership witness for a leaf at a given block.
Source§fn get_nullifier_membership_witness<'life0, 'life1, 'async_trait>(
&'life0 self,
block_number: u64,
nullifier: &'life1 Fr,
) -> Pin<Box<dyn Future<Output = Result<Option<Value>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
HttpNodeClient: 'async_trait,
fn get_nullifier_membership_witness<'life0, 'life1, 'async_trait>(
&'life0 self,
block_number: u64,
nullifier: &'life1 Fr,
) -> Pin<Box<dyn Future<Output = Result<Option<Value>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
HttpNodeClient: 'async_trait,
Get a nullifier membership witness at a given block.
Source§fn get_low_nullifier_membership_witness<'life0, 'life1, 'async_trait>(
&'life0 self,
block_number: u64,
nullifier: &'life1 Fr,
) -> Pin<Box<dyn Future<Output = Result<Option<Value>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
HttpNodeClient: 'async_trait,
fn get_low_nullifier_membership_witness<'life0, 'life1, 'async_trait>(
&'life0 self,
block_number: u64,
nullifier: &'life1 Fr,
) -> Pin<Box<dyn Future<Output = Result<Option<Value>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
HttpNodeClient: 'async_trait,
Get the low nullifier membership witness (for non-membership proofs).
Source§fn get_public_storage_at<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
block_number: u64,
contract: &'life1 AztecAddress,
slot: &'life2 Fr,
) -> Pin<Box<dyn Future<Output = Result<Fr, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
HttpNodeClient: 'async_trait,
fn get_public_storage_at<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
block_number: u64,
contract: &'life1 AztecAddress,
slot: &'life2 Fr,
) -> Pin<Box<dyn Future<Output = Result<Fr, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
HttpNodeClient: 'async_trait,
Read a public storage slot value at a given block.
Source§fn get_public_storage_at_by_hash<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
block_hash: &'life1 Fr,
contract: &'life2 AztecAddress,
slot: &'life3 Fr,
) -> Pin<Box<dyn Future<Output = Result<Fr, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
HttpNodeClient: 'async_trait,
fn get_public_storage_at_by_hash<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
block_hash: &'life1 Fr,
contract: &'life2 AztecAddress,
slot: &'life3 Fr,
) -> Pin<Box<dyn Future<Output = Result<Fr, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
HttpNodeClient: 'async_trait,
Read a public storage slot value at a specific block hash.
Source§fn get_public_data_witness<'life0, 'life1, 'async_trait>(
&'life0 self,
block_number: u64,
leaf_slot: &'life1 Fr,
) -> Pin<Box<dyn Future<Output = Result<Option<Value>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
HttpNodeClient: 'async_trait,
fn get_public_data_witness<'life0, 'life1, 'async_trait>(
&'life0 self,
block_number: u64,
leaf_slot: &'life1 Fr,
) -> Pin<Box<dyn Future<Output = Result<Option<Value>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
HttpNodeClient: 'async_trait,
Get a merkle witness for a public data leaf.
Source§fn get_public_data_witness_by_hash<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
block_hash: &'life1 Fr,
leaf_slot: &'life2 Fr,
) -> Pin<Box<dyn Future<Output = Result<Option<Value>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
HttpNodeClient: 'async_trait,
fn get_public_data_witness_by_hash<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
block_hash: &'life1 Fr,
leaf_slot: &'life2 Fr,
) -> Pin<Box<dyn Future<Output = Result<Option<Value>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
HttpNodeClient: 'async_trait,
Get a merkle witness for a public data leaf at a specific block hash.
Source§fn get_l1_to_l2_message_membership_witness<'life0, 'life1, 'async_trait>(
&'life0 self,
block_number: u64,
entry_key: &'life1 Fr,
) -> Pin<Box<dyn Future<Output = Result<Option<Value>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
HttpNodeClient: 'async_trait,
fn get_l1_to_l2_message_membership_witness<'life0, 'life1, 'async_trait>(
&'life0 self,
block_number: u64,
entry_key: &'life1 Fr,
) -> Pin<Box<dyn Future<Output = Result<Option<Value>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
HttpNodeClient: 'async_trait,
Get a membership witness for an L1-to-L2 message.
Source§fn get_l1_to_l2_message_checkpoint<'life0, 'life1, 'async_trait>(
&'life0 self,
l1_to_l2_message: &'life1 Fr,
) -> Pin<Box<dyn Future<Output = Result<Option<u64>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
HttpNodeClient: 'async_trait,
fn get_l1_to_l2_message_checkpoint<'life0, 'life1, 'async_trait>(
&'life0 self,
l1_to_l2_message: &'life1 Fr,
) -> Pin<Box<dyn Future<Output = Result<Option<u64>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
HttpNodeClient: 'async_trait,
Get the checkpoint number at which an L1-to-L2 message becomes available. Read more
Source§fn simulate_public_calls<'life0, 'life1, 'async_trait>(
&'life0 self,
tx: &'life1 Value,
skip_fee_enforcement: bool,
) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
HttpNodeClient: 'async_trait,
fn simulate_public_calls<'life0, 'life1, 'async_trait>(
&'life0 self,
tx: &'life1 Value,
skip_fee_enforcement: bool,
) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
HttpNodeClient: 'async_trait,
Delegate public call simulation to the node.
Source§fn is_valid_tx<'life0, 'life1, 'async_trait>(
&'life0 self,
tx: &'life1 Value,
) -> Pin<Box<dyn Future<Output = Result<TxValidationResult, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
HttpNodeClient: 'async_trait,
fn is_valid_tx<'life0, 'life1, 'async_trait>(
&'life0 self,
tx: &'life1 Value,
) -> Pin<Box<dyn Future<Output = Result<TxValidationResult, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
HttpNodeClient: 'async_trait,
Validate a simulated transaction.
Get private logs by tags for note discovery.
Get public logs by tags from a specific contract.
Source§fn register_contract_function_signatures<'life0, 'life1, 'async_trait>(
&'life0 self,
signatures: &'life1 [String],
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
HttpNodeClient: 'async_trait,
fn register_contract_function_signatures<'life0, 'life1, 'async_trait>(
&'life0 self,
signatures: &'life1 [String],
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
HttpNodeClient: 'async_trait,
Register contract function signatures for debugging.
Source§fn get_tx_effect<'life0, 'life1, 'async_trait>(
&'life0 self,
tx_hash: &'life1 TxHash,
) -> Pin<Box<dyn Future<Output = Result<Option<Value>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
HttpNodeClient: 'async_trait,
fn get_tx_effect<'life0, 'life1, 'async_trait>(
&'life0 self,
tx_hash: &'life1 TxHash,
) -> Pin<Box<dyn Future<Output = Result<Option<Value>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
HttpNodeClient: 'async_trait,
Get the effect of a transaction by its hash. Read more
Source§fn get_block_hash_membership_witness<'life0, 'life1, 'async_trait>(
&'life0 self,
block_number: u64,
block_hash: &'life1 Fr,
) -> Pin<Box<dyn Future<Output = Result<Option<Value>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
HttpNodeClient: 'async_trait,
fn get_block_hash_membership_witness<'life0, 'life1, 'async_trait>(
&'life0 self,
block_number: u64,
block_hash: &'life1 Fr,
) -> Pin<Box<dyn Future<Output = Result<Option<Value>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
HttpNodeClient: 'async_trait,
Get a block hash membership witness in the archive tree.
Source§fn find_leaves_indexes<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
block_number: u64,
tree_id: &'life1 str,
leaves: &'life2 [Fr],
) -> Pin<Box<dyn Future<Output = Result<Vec<Option<u64>>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
HttpNodeClient: 'async_trait,
fn find_leaves_indexes<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
block_number: u64,
tree_id: &'life1 str,
leaves: &'life2 [Fr],
) -> Pin<Box<dyn Future<Output = Result<Vec<Option<u64>>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
HttpNodeClient: 'async_trait,
Find leaf indexes in a specified merkle tree.
Source§fn get_tx_by_hash<'life0, 'life1, 'async_trait>(
&'life0 self,
tx_hash: &'life1 TxHash,
) -> Pin<Box<dyn Future<Output = Result<Option<Value>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
HttpNodeClient: 'async_trait,
fn get_tx_by_hash<'life0, 'life1, 'async_trait>(
&'life0 self,
tx_hash: &'life1 TxHash,
) -> Pin<Box<dyn Future<Output = Result<Option<Value>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
HttpNodeClient: 'async_trait,
Get a full transaction by its hash. Read more
Source§impl Clone for HttpNodeClient
impl Clone for HttpNodeClient
Source§fn clone(&self) -> HttpNodeClient
fn clone(&self) -> HttpNodeClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for HttpNodeClient
impl !RefUnwindSafe for HttpNodeClient
impl Send for HttpNodeClient
impl Sync for HttpNodeClient
impl Unpin for HttpNodeClient
impl !UnwindSafe for HttpNodeClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more