[](https://github.com/antonilol/rust-bitcoincore-zmq/actions/workflows/build_and_test.yml)
[](https://github.com/antonilol/rust-bitcoincore-zmq/actions/workflows/integration_tests.yml)
[](https://crates.io/crates/bitcoincore-zmq)
# Rust Bitcoin Core ZMQ
### Usage example
```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}"),
}
}
}
```
### Testing
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](.github/workflows/integration_tests.yml#L19-L21).
---
TODO:
- This README
- Message test
- SequenceMessage itest