https://github.com/stratum-mining/stratum-sniffer
A sniffer tool for monitoring and analyzing Stratum V1 and Stratum V2 mining protocol traffic.
https://github.com/stratum-mining/stratum-sniffer
bitcoin mining stratum sv1 sv2
Last synced: 13 days ago
JSON representation
A sniffer tool for monitoring and analyzing Stratum V1 and Stratum V2 mining protocol traffic.
- Host: GitHub
- URL: https://github.com/stratum-mining/stratum-sniffer
- Owner: stratum-mining
- License: other
- Created: 2025-05-29T15:13:47.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-10-27T13:33:59.000Z (9 months ago)
- Last Synced: 2025-10-27T15:07:49.353Z (9 months ago)
- Topics: bitcoin, mining, stratum, sv1, sv2
- Language: Rust
- Homepage:
- Size: 62.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# Stratum Sniffer
A sniffer tool for monitoring and analyzing Stratum V1 and Stratum V2 mining protocol traffic. This tool acts as a proxy between mining clients and pools, allowing you to inspect and analyze the communication flow.
### Configuration
- `server_addr`: The address of the upstream Stratum server to forward traffic to
- `listen_addr`: The local address and port to bind the sniffer proxy to
- `sv2`: Boolean flag to enable Stratum V2 (`true`) or Stratum V1 (`false`) protocol handling
## Usage
Run the sniffer with a configuration file:
```bash
cargo run -- --config config.toml
```
Make sure that when connecting some Sv2 application to `listen_addr`, you should use pubkey `9auqWEzQDVyd2oe1JVGFLMLHZtCo2FFqZwtKA5gd9xbuEu7PH72`.
Note: you can only connect a client to `stratum-sniffer` 1x. Once it disconnects, you have to re-start `stratum-sniffer`.
## License
This software is licensed under Apache 2.0 or MIT, at your option.
## Related Projects
- [Stratum V2 Reference Implementation](https://github.com/stratum-mining/stratum)
- [Stratum V2 Specification](https://stratumprotocol.org/)