https://github.com/shadowylab/miner-scanner
Async library to scan a LAN and detect common Bitcoin miner.
https://github.com/shadowylab/miner-scanner
antminer avalon bitaxe cgminer miner scanner whatsminer
Last synced: 13 days ago
JSON representation
Async library to scan a LAN and detect common Bitcoin miner.
- Host: GitHub
- URL: https://github.com/shadowylab/miner-scanner
- Owner: shadowylab
- License: mit
- Created: 2026-04-26T08:59:55.000Z (about 2 months ago)
- Default Branch: master
- Last Pushed: 2026-04-26T16:01:07.000Z (about 2 months ago)
- Last Synced: 2026-05-27T17:19:11.601Z (29 days ago)
- Topics: antminer, avalon, bitaxe, cgminer, miner, scanner, whatsminer
- Language: Rust
- Homepage: https://crates.io/crates/miner-scanner
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# miner-scanner
Async library to scan a LAN and detect common Bitcoin miner.
It probes a subnet and tries to classify devices as:
- `Bitaxe`
- `Antminer`
- `Whatsminer`
- `Avalon`
- `CGMiner-compatible`
The current implementation checks:
- HTTP endpoints on port `80`
- CGMiner-style API on port `4028`
## Example
```rust
use futures_util::StreamExt;
use miner_scanner::{ScanOptions, scan_network};
#[tokio::main]
async fn main() -> Result<(), Box> {
let cidr = "192.168.1.0/24".parse()?;
let mut miners = scan_network(cidr, ScanOptions::default());
while let Some(miner) = miners.next().await {
println!(
"{} | {:?} | confidence={}",
miner.addr, miner.family, miner.confidence
);
}
Ok(())
}
```
## License
This project is distributed under the MIT software license – see the [LICENSE](./LICENSE) file for details