Crates.io | bitcoincore-zmq |
lib.rs | bitcoincore-zmq |
version | 1.5.2 |
source | src |
created_at | 2023-04-17 15:32:45.028736 |
updated_at | 2024-08-06 16:05:30.275371 |
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 | 89,758 |
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 version of the 5 most recent major Bitcoin Core versions, see integration_tests.yml.
TODO:
getzmqnotifications
rpc