This commit is contained in:
ysq
2025-09-10 23:25:24 +08:00
parent 108f635113
commit dec35a12c4
8 changed files with 23 additions and 23 deletions
+3 -3
View File
@@ -53,7 +53,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
};
// Listen to account data belonging to owner programs -> account event monitoring
let account_filter = AccountFilter { account: vec![], owner: vec![] };
let account_filter = AccountFilter { account: vec![], owner: vec![], filters: vec![] };
// listen to specific event type
let event_type_filter =
@@ -62,8 +62,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
grpc.subscribe_events_immediate(
protocols,
None,
transaction_filter,
account_filter,
vec![transaction_filter],
vec![account_filter],
Some(event_type_filter),
None,
callback,