What Is the Stratum Protocol? How Miners Talk to Pools

Published

What Is the Stratum Protocol? How Miners Talk to Pools

Share

Frequently asked questions

What is the Stratum protocol?

Stratum is the communication protocol between a miner and a mining pool. The pool pushes work (block templates and jobs) to the miner, and the miner submits shares back as proof it is hashing. It replaced older getwork and getblocktemplate polling with an efficient push model and is now the near-universal standard.

What does a Stratum share actually contain?

A share is a submitted block-header solution that meets the pool's current difficulty target. It proves the miner did a known amount of work. Most shares are only good enough for the pool's target, but occasionally a share is good enough to satisfy the network target, which means it solves a real block.

What is the difference between Stratum V1 and Stratum V2?

Stratum V1 is the original 2012 JSON protocol: simple, universal, and unencrypted. Stratum V2 is a modern redesign that encrypts the session with Noise, authenticates the pool with a public key, uses compact binary framing, and can let miners choose their own transactions. V2 is more secure and more efficient.

What is vardiff in Stratum?

Vardiff, or variable difficulty, means the pool automatically raises or lowers the share difficulty to match your hashrate. A small miner gets low difficulty so it still submits shares regularly; a big miner gets high difficulty so it does not flood the pool. It keeps the share rate in a healthy range for any device.

Is the Stratum protocol encrypted?

Plain Stratum V1 is not: everything travels as readable JSON, which is why it can be sniffed or hijacked on an untrusted network. You can wrap V1 in TLS for encryption, or use Stratum V2, which builds encryption and pool authentication into the protocol itself.

What port does Stratum use?

There is no single fixed port; pools publish their own. mkpool uses ports in the 3300 to 3400 range, with different ports for vardiff, fixed difficulty tiers, TLS, and Stratum V2. The connect page for each chain lists every port and what it is for.

Mecanik1337

Written by Mecanik1337

Founder and Lead Engineer, mkpool

Mecanik1337 builds and operates mkpool, an open-source solo mining pool spanning nine chains. He writes about Stratum protocol internals, ASIC and Bitaxe hardware, and the mechanics of solo mining, drawing on the pool's own production telemetry.

View profile →

Newsletter

Mining insights in your inbox

New guides, hardware reviews, and pool updates. No spam, unsubscribe anytime.

Loading comments...

Keep reading

back to all articles