rust
fn main() {
for msg in bitcoincore_zmq::subscribe_multi(&["tcp://127.0.0.1:28359"]).unwrap() {
match msg {
Ok(msg) => println!("Received message: {msg}"),
Err(err) => println!("Error receiving message: {err}"),
}
}
}
Tests run on every push and pull request. Integration tests use the latest version of the 3 most recent major Bitcoin Core versions, see integration_tests.yml.
TODO:
- This README
- Message test
- SequenceMessage itest
- Easy addEventListener like functionality with help of the getzmqnotifications
rpc (bitcoincore-rpc PR: #295)
- raw messages
- zmq publisher