Created
January 24, 2022 22:25
-
-
Save shosti/bd14836aaf1d1ddfc030137aacf1fb92 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let (_client, rx) = PubsubClient::logs_subscribe( | |
"ws://127.0.0.1:8900", | |
RpcTransactionLogsFilter::All, | |
RpcTransactionLogsConfig { commitment: None }, | |
)?; | |
std::thread::spawn(move || loop { | |
let ev = rx.recv().unwrap(); | |
println!("EV: {:#?}", ev); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment