https://github.com/0xtlt/mempool_rust
Mempool (Bitcoin) rust client
https://github.com/0xtlt/mempool_rust
Last synced: about 1 year ago
JSON representation
Mempool (Bitcoin) rust client
- Host: GitHub
- URL: https://github.com/0xtlt/mempool_rust
- Owner: 0xtlt
- License: mit
- Created: 2023-01-09T10:24:21.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-09T17:26:51.000Z (over 3 years ago)
- Last Synced: 2025-04-06T13:52:44.774Z (about 1 year ago)
- Language: Rust
- Size: 5.86 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# mempool_rust
⚠️: The library is under development, it is still missing a lot of features that will come soon. ⚠️
[](https://crates.io/crates/mempool_rust)
[](https://docs.rs/mempool_rust)
[](./LICENSE.txt)
[](https://github.com/0xtlt/mempool_rust/actions/workflows/checks.yml)
[](https://img.shields.io/github/issues/0xtlt/mempool_rust)
An ergonomic, [Mempool](https://mempool.space/) API Client for Rust.
- [Changelog](CHANGELOG.md)
## Example
```toml
[dependencies]
tokio = { version = "1.0", features = ["full"] }
mempool_rust = "0.1"
```
And then the code:
```rust,norun
use mempool_rust::MempoolClient;
#[tokio::main]
async fn main() {
let client = MempoolClient::new(
"https://mempool.space",
None,
)
.unwrap();
// OR with tor
let client = MempoolClient::new(
"http://url.onion",
Some("socks5h://127.0.0.1:9050"),
)
.unwrap();
let blocks = client.get_blocks(None).await.unwrap();
println!("{:#?}", blocks);
}
```
## Key features
- [x] Tor support
- General
- [ ] GET difficulty adjustment
- Address
- [ ] GET address
- [ ] GET address transactions
- [ ] GET address transactions chain
- [ ] GET address transactions mempool
- [ ] GET address UTXO
- Blocks
- [ ] GET block
- [ ] GET block header
- [ ] GET block height
- [ ] GET block raw
- [ ] GET block status
- [ ] GET block tip height
- [ ] GET block tip hash
- [ ] GET block transaction ID
- [ ] GET block transaction IDs
- [ ] GET block transactions
- [x] GET blocks
- Mining
- [ ] GET mining pools
- [ ] GET mining pool
- [ ] GET mining pool hashrates
- [ ] GET mining pool hashrate
- [ ] GET mining pool blocks
- [ ] GET hashrate
- [ ] GET reward stats
- [ ] GET block fees
- [ ] GET block rewards
- [ ] GET block feerates
- [ ] GET block sizes and weights
- Fees
- [ ] GET mempool blocks fees
- [ ] GET recommended fees
- Mempool
- [ ] GET mempool
- [ ] GET mempool transaction IDs
- [ ] GET mempool recent
- Transactions
- [ ] GET children pay for parent
- [ ] GET transaction
- [ ] GET transaction hex
- [ ] GET transaction merkleblock proof
- [ ] GET transaction merkle proof
- [ ] GET transaction outspend
- [ ] GET transaction outspends
- [ ] GET transaction raw
- [ ] GET transaction status
- [ ] POST transaction
## License
Licensed under MIT license ([LICENSE-MIT](LICENSE-MIT) or )