From 6e9761692e37d7454d5f4d7a224bc56b930269a5 Mon Sep 17 00:00:00 2001 From: GroovieGermanikus Date: Thu, 14 Nov 2024 12:13:02 +0100 Subject: [PATCH] subscripbe accounts --- examples/subscribe_accounts.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/examples/subscribe_accounts.rs b/examples/subscribe_accounts.rs index 09c170f..8cd64d8 100644 --- a/examples/subscribe_accounts.rs +++ b/examples/subscribe_accounts.rs @@ -191,3 +191,20 @@ pub fn all_accounts() -> SubscribeRequest { ..Default::default() } } + + +pub fn slots() -> SubscribeRequest { + let mut slots_subs = HashMap::new(); + slots_subs.insert( + "client".to_string(), + SubscribeRequestFilterSlots { + filter_by_commitment: None, + }, + ); + + SubscribeRequest { + slots: slots_subs, + ..Default::default() + } +} +