Skip to content

Commit

Permalink
feat: get_filter_logs in Provider trait (#1684)
Browse files Browse the repository at this point in the history
  • Loading branch information
eshaan7 authored Nov 25, 2024
1 parent 4284bb5 commit d874ea3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/provider/src/provider/trait.rs
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,11 @@ pub trait Provider<T: Transport + Clone = BoxTransport, N: Network = Ethereum>:
self.client().request("eth_getFilterChanges", (id,)).await
}

/// Retrieves a [`Vec<Log>`] for the given filter ID.
async fn get_filter_logs(&self, id: U256) -> TransportResult<Vec<Log>> {
self.client().request("eth_getFilterLogs", (id,)).await
}

/// Watch for the confirmation of a single pending transaction with the given configuration.
///
/// Note that this is handled internally rather than calling any specific RPC method, and as
Expand Down

0 comments on commit d874ea3

Please sign in to comment.