Glossary: Stratum Protocol

One-Sentence Definition

The stratum protocol is a communication standard that allows your mining hardware to talk to a mining pool or solo mining node, efficiently sending work assignments and receiving completed shares.

Why It Matters for Solo Mining

When you’re solo mining, your miner needs to communicate with your Bitcoin node to get block templates and submit solutions. The stratum protocol makes this communication fast and lightweight, so your miner can spend more time hashing instead of waiting around for data. Without stratum, you’d be stuck with older, slower methods like getblocktemplate that waste bandwidth and processing power.

How It Works

The stratum protocol works over a simple TCP connection using JSON-formatted messages. When your mining software connects, the server sends work assignments that include a block header template and a target difficulty. Your miner hashes away trying different nonces, and when it finds shares (partial solutions), it sends them back to the server through stratum.

The protocol is super efficient because it only sends the minimal amount of data needed. Instead of downloading entire block templates repeatedly, stratum uses a “mining.notify” message that pushes new work only when something changes—like when a new block is found on the network. This keeps latency low and reduces the chance of working on stale blocks.

For solo miners, you’ll typically run software like CKPool or P2Pool that implements the stratum protocol and connects to your Bitcoin node. Your mining hardware (whether it’s a Bitaxe Gamma 602 or a Lucky Miner LV08) then connects to your stratum server and starts receiving work.

Example

Think of stratum like a really efficient walkie-talkie system. Your mining hardware asks “What should I work on?” and the server replies with just the essential info. When you find something interesting, you report back immediately. Compare this to the old way where you’d have to call the server every few seconds asking “Anything new? Anything new?”—that’s wasteful. Devices like the NerdQaxe++ Rev 6.1 use stratum to stay connected 24/7, ready to submit a winning block the instant they find one.