| Crates.io | bitcoincore-zmq |
| lib.rs | bitcoincore-zmq |
| version | 1.5.4 |
| created_at | 2023-04-17 15:32:45.028736+00 |
| updated_at | 2025-11-04 13:47:22.073251+00 |
| description | Bitcoin Core ZMQ subscriber with minimal dependencies |
| homepage | https://github.com/antonilol/rust-bitcoincore-zmq |
| repository | https://github.com/antonilol/rust-bitcoincore-zmq |
| max_upload_size | |
| id | 841611 |
| size | 88,108 |
fn main() {
for msg in bitcoincore_zmq::subscribe_receiver(&["tcp://127.0.0.1:28359"]).unwrap() {
match msg {
Ok(msg) => println!("Received message: {msg}"),
Err(err) => println!("Error receiving message: {err}"),
}
}
}
For more examples, have a look in the examples directory.
bitcoin and zmq, optionally 2 additional crates are needed for the async subscriber, async_zmq and futures-util.hashblock, hashtx, block, tx and sequence.Tests run on every push and pull request. Integration tests use the latest minor version of the 5 most recent major Bitcoin Core versions, see integration_tests.yml for the version numbers.
TODO:
getzmqnotifications rpc