| Crates.io | ghostcore-zmq |
| lib.rs | ghostcore-zmq |
| version | 1.4.0 |
| created_at | 2024-06-23 12:35:41.515198+00 |
| updated_at | 2024-06-23 12:35:41.515198+00 |
| description | Ghost Core ZMQ subscriber with minimal dependencies |
| homepage | https://github.com/bleach86/rust-ghostcore-zmq |
| repository | https://github.com/bleach86/rust-ghostcore-zmq |
| max_upload_size | |
| id | 1281177 |
| size | 88,733 |
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 3 most recent major Bitcoin Core versions, see integration_tests.yml.
TODO:
getzmqnotifications rpc (bitcoincore-rpc PR: #295)