Skip to content

Instantly share code, notes, and snippets.

@shosti
Created January 24, 2022 22:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shosti/bd14836aaf1d1ddfc030137aacf1fb92 to your computer and use it in GitHub Desktop.
Save shosti/bd14836aaf1d1ddfc030137aacf1fb92 to your computer and use it in GitHub Desktop.
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