https://github.com/shadowylab/braiinspool
Braiins Pool API SDK
https://github.com/shadowylab/braiinspool
bitcoin mining mining-monitor mining-pool rust slushpool
Last synced: 5 months ago
JSON representation
Braiins Pool API SDK
- Host: GitHub
- URL: https://github.com/shadowylab/braiinspool
- Owner: shadowylab
- License: mit
- Created: 2022-11-14T23:09:49.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-09-03T10:35:20.000Z (10 months ago)
- Last Synced: 2025-09-03T12:21:20.367Z (10 months ago)
- Topics: bitcoin, mining, mining-monitor, mining-pool, rust, slushpool
- Language: Rust
- Homepage: https://crates.io/crates/braiinspool
- Size: 66.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Braiins Pool API
## Description
[Braiins Pool](https://braiins.com) client.
## Getting started
```rust,no_run
use braiinspool::prelude::*;
#[tokio::main]
async fn main() -> Result<(), Error> {
// Construct client
let client = BraiinsPoolClient::new("apikey")?;
// Get pool stats
let pool_stats: PoolStats = client.pool_stats().await?;
println!("{:#?}", pool_stats);
// Get user profile
let user_profile: UserProfile = client.user_profile().await?;
println!("{:#?}", user_profile);
// Get daily rewards
let daily_rewards: DailyRewards = client.daily_rewards().await?;
println!("{:#?}", daily_rewards);
// Get workers
let workers: Workers = client.workers().await?;
println!("{:#?}", workers);
Ok(())
}
```
## Features
The following crate feature flags are available:
| Feature | Default | Description |
|-------------|:-------:|-----------------------------|
| `rustls` | Yes | Enable `rustls` |
| `nativetls` | No | Enable native TLS (openssl) |
| `socks` | No | Enable socks5 proxy support |
## Minimum Supported Rust Version (MSRV)
This project is built with the Rust language version `2024` and requires a minimum compiler version of `1.85.0`.
## License
This project is distributed under the MIT software license - see the [LICENSE](./LICENSE) file for details