Job Declaration and DATUM: your own block template and who selects transactions

Job Declaration is the part of the Stratum V2 protocol that lets the miner, rather than the pool, build the block template – the list of transactions that go into a block – on their own node. The pool still counts shares and pays out rewards; it simply no longer decides what goes into the block. OCEAN pool's DATUM protocol does something similar.
Summary
- With classic Stratum V1, the pool selects the transactions for the block and the miner only hashes.
- Job Declaration (JD) and DATUM both move transaction selection to the miner; the pool still pays out, and its payout output must be included in the template.
- You need your own Bitcoin node (Bitcoin Core version 30 or later with the IPC interface; Bitcoin Knots is recommended for DATUM) and some extra software; your ASIC miners do not need to change.
- As of 3 December 2026, the only pool confirmed to offer JD in production is DEMAND (DMND); DATUM is used by OCEAN (around 4 % of blocks over the past week).
- Today it has almost no effect on earnings: fees make up only about 0.7 % of the block reward. The point is mainly decentralisation and censorship resistance.
Simply put: your own block template is like writing your own shopping list
Imagine you and a group of friends go on a big joint shopping trip. Until now, the organiser (the pool) always wrote the shopping list and you just pushed the trolley (hashed). Job Declaration is an agreement that you write the list yourself: you choose what goes into the basket. The organiser only checks it and still splits the bill and the earnings according to how much each person pushed.
In Bitcoin, the “shopping list” is the block template: which waiting transactions make it into the block. Whoever builds it decides whether a transaction gets left out. When a handful of large pools build the templates, they hold a lot of power over what goes into blocks. When thousands of miners build them, the network is more resilient.
- You do not need to change your miner. Your Antminer works exactly as before; a small computer running a program is simply added between it and the pool.
- You need your own Bitcoin node. This is a computer holding a copy of the blockchain that keeps track of waiting transactions.
- The pool still pays you. Payouts carry on as normal; the pool just no longer selects the transactions. It can, however, reject a template you propose.
- Your earnings stay practically the same. It is more a matter of principle and network security.
An example as of 3 December 2026: the average block reward was 3.146 BTC, of which transaction fees were only about 0.021 BTC, roughly 26,000 Kč. For a single Antminer S21 XP earning about 148 Kč a day, fees account for roughly 1 Kč a day. Even if choosing your own transactions pushed fees up a little, you would hardly notice it in your payout.
You will find the details, with figures and tables, in the technical explanation.
Who builds the block template today
A miner in a pool does not hash a “block” but the block header it receives from the pool in a job. In the Stratum V1 protocol, both the job and the block contents – the selection of transactions from the mempool and the coinbase transaction – are prepared by the pool on its own node. The miner sees only the pieces of data needed for hashing and has no say over transactions. The result: a few large pools decide what goes into most blocks.
Stratum V2 addresses this with an optional component, the Job Declaration Protocol. Stratum V2 itself (encrypted connection, binary messages) has nothing to do with transaction selection – many pools have deployed only the transport layer without JD.
How Job Declaration works
The SV2 specification describes three roles:
| Role | Where it runs | What it does |
|---|---|---|
| Template Provider (TP) | at the miner's site, connected to Bitcoin Core | sends block templates via the Template Distribution protocol |
| Job Declarator Client (JDC) | at the miner's site (a small server or PC) | takes templates, declares them to the pool, distributes work to miners, submits a found block |
| Job Declarator Server (JDS) | at the pool or at a third party the pool trusts | allocates tokens, checks declared jobs, maintains its own mempool |
The process in brief:
- AllocateMiningJobToken – the JDC requests a token from the pool; in its reply the pool sends the coinbase outputs the template must contain (its payout address).
- DeclareMiningJob – the JDC declares a set of transactions. If the JDS does not know some of them, it requests them with a ProvideMissingTransactions message.
- SetCustomMiningJob – the JDC tells the pool about its custom job; the miners work on it and submit shares to the pool as usual.
- PushSolution – when a share meets the network difficulty, the JDC sends the block to the pool and at the same time broadcasts it to the network through its own node.
The pool keeps control over share accounting and payouts: the specification explicitly requires the JDC to put the sats into the pool's payout output. The pool can reject a declared job (DeclareMiningJob.Error) or reject shares; the JDC should then switch to another pool or, as a last resort, to solo mining.
The specification defines two modes: Full-Template, where the pool sees all transactions and can verify them, and Coinbase-only, where it does not – the specification itself acknowledges that this leaves the pool exposed to a vulnerability similar to block withholding.
DATUM: the OCEAN pool alternative
OCEAN uses its own DATUM protocol rather than SV2 JD. The DATUM Gateway program takes templates from the miner's node via getblocktemplate and distributes them to miners over plain Stratum V1 (with version rolling). The template must contain the pool's payout outputs in the order the pool specifies; rewards are paid directly in the coinbase transaction. The DATUM documentation strongly recommends Bitcoin Knots because, in its view, Bitcoin Core offers few options for controlling the template – we cover the differences in the article Bitcoin Core vs. Knots. The Gateway is in public beta, and according to OCEAN, miners using DATUM pay half the pool fee.
Comparison of options
| Stratum V1 (standard pool) | SV2 + Job Declaration | DATUM (OCEAN) | Solo pool | |
|---|---|---|---|---|
| Who selects transactions | pool | miner | miner | solo pool operator (or you, on your own pool) |
| Own node | no | yes (Core 30+ with IPC) | yes (Knots recommended) | no (yes for your own pool) |
| Who pays out | pool | pool | coinbase directly to miners | entire block to the finder |
| Miner firmware change | no | no | no | no |
| Status as of 3 Dec 2026 | common standard | alpha software; DEMAND pool confirmed in production | public beta; OCEAN 41 blocks (4.35 %) over the past week | widely available |
What you need to run it
-
Node: Bitcoin Core 30.0 (released 10 October 2025) introduced an experimental IPC interface for mining, launched with the
bitcoin-nodebinary. DEMAND's guide states that even a pruned node with a few GB of disk space and 4 GB of RAM is enough. A full node needs around 1 TB of SSD – the blockchain was about 787 GB as of 2 December 2026. More in the article Bitcoin node. - Software: sv2-apps (Template Provider, JD Client) – latest release 0.9.2; according to its own README, the project is in alpha. For DATUM, the DATUM Gateway program (64-bit Linux).
- Network: with DEMAND, outbound connections are enough – no inbound ports. The sources do not state a specific data volume.
- Miners: standard ASICs running Stratum V1 – the JDC or Gateway translates the work for them. In a larger farm, this function can be combined with a stratum proxy.
Our own calculation: how much are the transactions in a block actually “worth”?
According to our data (average of 144 blocks, as of 3 December 2026), the block reward was 3.1457 BTC, of which the subsidy was 3.125 BTC and fees 0.0207 BTC, i.e. 0.66 % of the reward – about 26,000 Kč at a price of 1,257,221 Kč per BTC. For an Antminer S21 XP (270 TH/s) earning about 148 Kč a day before pool fees, transaction fees amount to just under 1 Kč a day. In other words, choosing your own transactions is not a way to earn more today. It makes sense for decentralisation, censorship resistance and independence from any single pool. This is not investment advice.
Things to watch out for
- Large pools (Foundry, AntPool, F2Pool and others) joined the SV2 working group in May 2026. Membership, however, does not mean they already accept templates from miners.
- If your node falls behind or goes down, you will be mining on a stale template. Set up a backup pool without JD.
- The IPC interface in Bitcoin Core and sv2-apps are both still experimental – use them on a production farm only under supervision.
What next
How a pool splits rewards, and why that matters more than transaction selection, is explained in Mining pool. If you want the entire block reward for yourself, take a look at Solo pool. You will find more terms in the Mining wiki.
Sources
- Stratum V2 – Job Declaration Protocol specification
- sv2-apps – releases (0.9.2)
- Bitcoin Core 30.0 – release notes (IPC interface)
- DEMAND: guide to building your own templates
- OCEAN: DATUM Gateway (README) and ocean.xyz/datum
- mempool.space – OCEAN pool statistics (as of 3 December 2026)
Updated 3 December 2026.
Frequently asked questions
Do I need to change my miner's firmware for Job Declaration?
Will I earn more with my own block template?
Which pools accept templates from miners?
What node do I need?
Can the pool reject my template?
This text was prepared with the help of AI. Facts, figures and procedures were checked by Yegor.