From d874ea314b13862ab7b8971b6e0eb6eb3a7734ce Mon Sep 17 00:00:00 2001 From: Eshaan Bansal Date: Mon, 25 Nov 2024 18:00:53 +0530 Subject: [PATCH] feat: get_filter_logs in Provider trait (#1684) --- crates/provider/src/provider/trait.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/provider/src/provider/trait.rs b/crates/provider/src/provider/trait.rs index 99d0d3cf649..ad6e3c458c1 100644 --- a/crates/provider/src/provider/trait.rs +++ b/crates/provider/src/provider/trait.rs @@ -496,6 +496,11 @@ pub trait Provider: self.client().request("eth_getFilterChanges", (id,)).await } + /// Retrieves a [`Vec`] for the given filter ID. + async fn get_filter_logs(&self, id: U256) -> TransportResult> { + 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