Pools and payouts

What is Stratum?

Stratum is the protocol miners use to receive work from a pool and send back shares.

Put it to work Mining profit calculator Your machine, the power price you pay, the income per day. Open the page
Carries
Jobs to the miner, shares to the pool
Transport
TCP, one long connection
Format (version 1)
JSON text lines
Direction
Opened from the miner outward
Encrypted form
stratum+ssl, where offered

What it means in practice

A miner connects to a pool's stratum address, usually written with a host name and port, logs in with a worker name and then receives block templates to hash. The original version sends readable JSON messages without encryption. Stratum V2 replaces it with a binary, encrypted protocol.

Reading a stratum address

stratum+tcp://pool.example:3333 has three parts: the protocol, the host name and the port. Pools offer several ports for small and large machines, and often regional hosts. Choose the region nearest the machine: a shorter trip means fewer stale shares.

The worker name is your account or wallet address, usually with a dot and a name for the machine, such as account.rig1. Fill in two or three pools so the machine moves on by itself if one does not answer.

The conversation in five messages

The miner opens with mining.subscribe and receives a unique prefix, so no two machines search the same space. It sends mining.authorize with the worker name. The pool answers with mining.set_difficulty, the bar for shares, and then mining.notify, the first job.

From then on two messages do nearly all the work. mining.notify brings a fresh job every half minute or so, and at once when a block is found. mining.submit carries each share back. A job holds the previous block’s hash, two halves of the coinbase transaction, the branch needed to rebuild the Merkle root, and the version, target and time.

Vardiff, or why the share rate stays the same

Pools watch how often a machine submits and move its share difficulty until the rate is comfortable, often between five and twenty shares a minute. A big machine gets a high bar, a small one a low bar.

Your pay is based on difficulty accepted and not on the count of shares, so the bar does not change income. A new connection often starts low and steps up in the first minutes, which makes the early graph look busy.

Delay, jitter and lost work

When a new block arrives, work on the old one is worthless. The time between the pool knowing and your chips knowing is wasted. Example figures: 200 milliseconds out of a ten-minute block is 0.2 / 600 = 0.033% of the work. A machine that mines 0.0001 BTC a day loses about 3 satoshis to it.

So on Bitcoin a distant server costs little by delay alone. Dropped connections cost far more. A minute of reconnecting each hour is 1.7%.

Security on the plain version

Version 1 over TCP can be read and altered by anyone on the path. An attacker on the local network could redirect shares to another account. Where the pool offers stratum+ssl, use it, if the firmware supports it.

Keep miners on their own network segment with outgoing access only to the pool ports and the time server. Nothing on the internet needs to open a connection toward a miner.

The worker name is not a secret. The pool account behind it is, so protect that with two-factor login.

Worked example

A site with 120 machines configured as worker names site1.rack01.001 to site1.rack01.120 lets the pool dashboard report each machine's hashrate and stale rate separately.

Example figures, not live data.

Step by step

  1. Check that the miner has an address, a gateway and a DNS server.
  2. Confirm the host name and port, with no spaces at the ends.
  3. Try another port or region from the pool’s list.
  4. Test from a computer on the same network whether the port opens.
  5. Read the miner’s log for authorize errors, which point to the worker name.

Common mistakes

  • Entering the pool’s website address in place of its stratum host.
  • Listing the same pool three times as primary and backup.
  • Opening the miner’s own ports to the internet.

Common questions

What is the password field for?

Most pools ignore it, so “x” is fine. Some read options from it, such as a fixed difficulty.

Which port should I use?

The one the pool lists for your hashrate. A firewall that blocks it is a common reason for “pool not connected”.

How much data does a miner use?

Very little: typically tens of megabytes a day for one machine, less with a higher share difficulty.

Can I use Wi-Fi?

Small home devices often do. Full-size machines have a network socket, and a cable is steadier.

Can several miners share one connection?

Yes, through a proxy on the local network, which large sites use to reduce open connections.