braiinspool

Crates.iobraiinspool
lib.rsbraiinspool
version0.2.0
created_at2022-11-15 08:49:48.513121+00
updated_at2025-09-03 10:35:06.456992+00
descriptionBraiins Pool API
homepagehttps://github.com/shadowylab/braiinspool
repositoryhttps://github.com/shadowylab/braiinspool.git
max_upload_size
id715542
size62,953
Yuki Kishimoto (yukibtc)

documentation

README

Braiins Pool API

Description

Braiins Pool client.

Getting started

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 file for details

Commit count: 0

cargo fmt