subscripbe accounts

This commit is contained in:
GroovieGermanikus 2024-11-14 12:13:02 +01:00
parent c71cbbe05a
commit 6e9761692e
No known key found for this signature in database
GPG Key ID: 5B6EB831A5CD2015
1 changed files with 17 additions and 0 deletions

View File

@ -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()
}
}