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.
server_addr: The address of the upstream Stratum server to forward traffic tolisten_addr: The local address and port to bind the sniffer proxy tosv2: Boolean flag to enable Stratum V2 (true) or Stratum V1 (false) protocol handling
Run the sniffer with a configuration file:
cargo run -- --config config.tomlMake 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.
This software is licensed under Apache 2.0 or MIT, at your option.