# Block reward

> What a Pearl miner may pay itself: the subsidy plus the block's fees, checked to the grain on block 130,825, the 100-block maturity rule and the genesis zero.

Source: https://pearlcodex.com/technical/emission/block-reward/ · Last updated: 2026-10-20 · Checked against Pearl's source code at v1.5.5

Mining costs electricity and hardware. The [block reward](https://pearlcodex.com/glossary/#block-reward) is what pays for it: whoever wins a block gets to write one special transaction, the [coinbase](https://pearlcodex.com/glossary/#coinbase), and pay themselves.

How much? Exactly two things, added together:

- the **subsidy**: brand-new PRL, set by the [emission formula](https://pearlcodex.com/technical/emission/) for the block’s height;
- the **fees**: whatever the block’s other transactions left over between their inputs and outputs.

Nothing else. Every node recomputes both and rejects a block that pays itself a single grain too much.

## Try it

Pick a height and read its subsidy off the curve. The fee part depends on what the block contains.

_Interactive: Emission curve. Try it on the page: <https://pearlcodex.com/technical/emission/block-reward/>_

## What may a miner claim?

The rule is one comparison, run on every block:

$$
\sum \text{coinbase outputs} \;\le\; \text{subsidy}(h) + \sum \text{fees}
$$

Checked by every node

The fees are easy to total: for each transaction, the inputs’ values minus the outputs’ values. The subsidy comes from the height:

$$
\text{subsidy}(h) = \left\lfloor \frac{2.1 \times 10^{17} \cdot 650{,}226}{(h + 650{,}226)(h + 650{,}225)} \right\rfloor \text{ grains}
$$

A miner may claim **less** than allowed. The rule is “at most”, so nothing stops it, and the unclaimed part is simply never created: no later block can pick it up. That’s why the issued totals on these pages are a maximum.

## Does block 130,825 add up?

Here is its coinbase, the first of its 115 transactions, mined by Kryptex on 20 October 2026:

**Coinbase of block 130,825 · 216 bytes**

```
02000000 00 01 01 0000000000000000000000000000000000000000000000000000000000000000 ffffffff 27 0309ff01048393d76a2f706f6f6c2e6b7279707465782e636f6d2f1550cad31e016e7bf00f2ecb ffffffff 02 cc84ce1d34000000 22 5120e31e8032a67b9af27dc279f448c003457bae6c5d28de7ee719bc87b6801ede17 0000000000000000 26 6a24aa21a9ed78cc1a61dcfcee9c59ddd9f4d56a98764c071e077bcc36fe9d1cf0aad50ebac3 01 20 0000000000000000000000000000000000000000000000000000000000000000 00000000
```

| Field                                                  | Bytes          | Value                                                                                                                                                                                                          |
| ------------------------------------------------------ | -------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Version (`version`)                                    | 4, offset 0    | 2 · int32 little-endian. Pearl wallets and pearld coinbases use version 1; relay policy accepts 1-2.                                                                                                           |
| Marker (`marker`)                                      | 1, offset 4    | 0x00 · Segwit marker (BIP-144): says witness data follows the outputs.                                                                                                                                         |
| Flag (`flag`)                                          | 1, offset 5    | 0x01 · Witness flag; 0x01 is the only value Pearl accepts.                                                                                                                                                     |
| Input count (`vin.length`)                             | 1, offset 6    | 1 · CompactSize number of inputs.                                                                                                                                                                              |
| Previous txid (`vin[0].txid`)                          | 32, offset 7   | 0000000000000000000000000000000000000000000000000000000000000000 · All zeros: this input creates new coins (coinbase).                                                                                         |
| Output index (`vin[0].vout`)                           | 4, offset 39   | 0xffffffff · 0xffffffff together with a zero txid marks a coinbase.                                                                                                                                            |
| scriptSig length (`vin[0].scriptSig.length`)           | 1, offset 43   | 39 · CompactSize length of the scriptSig.                                                                                                                                                                      |
| Coinbase script (`vin[0].scriptSig`)                   | 39, offset 44  | 0309ff01048393d76a2f706f6f6c2e6b7279707465782e636f6d2f1550cad31e016e7bf00f2ecb · Coinbase data. It starts with the block height 130825 (BIP-34, required in every Pearl block), then anything the miner likes. |
| Sequence (`vin[0].sequence`)                           | 4, offset 83   | 0xffffffff · Final (0xffffffff): no RBF signal, no relative locktime, and locktime is ignored for this input. Pearl wallets use this.                                                                          |
| Output count (`vout.length`)                           | 1, offset 87   | 2 · CompactSize number of outputs.                                                                                                                                                                             |
| Amount (`vout[0].value`)                               | 8, offset 88   | 223,838,373,068 grains (2238.38373068 PRL) · int64 little-endian, in grains (1 PRL = 100,000,000 grains).                                                                                                      |
| Script length (`vout[0].scriptPubKey.length`)          | 1, offset 96   | 34 · CompactSize length of the locking script.                                                                                                                                                                 |
| Locking script (`vout[0].scriptPubKey`)                | 34, offset 97  | prl1puv0gqv4x0wd0ylwz086y3sqrg4a6umza9r08aecehjrmdqq7mctsmqaqsh · OP_1 OP_PUSHBYTES_32 \<output key Q>: a Taproot output.                                                                                      |
| Amount (`vout[1].value`)                               | 8, offset 131  | 0 grains (0.00000000 PRL) · int64 little-endian, in grains (1 PRL = 100,000,000 grains).                                                                                                                       |
| Script length (`vout[1].scriptPubKey.length`)          | 1, offset 139  | 38 · CompactSize length of the locking script.                                                                                                                                                                 |
| Locking script (`vout[1].scriptPubKey`)                | 38, offset 140 | witness commitment 78cc1a61dcfcee9c59ddd9f4d56a98764c071e077bcc36fe9d1cf0aad50ebac3 · OP_RETURN aa21a9ed ‖ SHA256d(witness Merkle root ‖ nonce): the BIP-141 witness commitment.                               |
| Witness items (`witness[0].length`)                    | 1, offset 178  | 1 · Number of witness stack items for input 0.                                                                                                                                                                 |
| Witness reserved value length (`witness[0][0].length`) | 1, offset 179  | 32 · CompactSize length of this witness item.                                                                                                                                                                  |
| Witness reserved value (`witness[0][0]`)               | 32, offset 180 | 0000000000000000000000000000000000000000000000000000000000000000 · The coinbase witness is one 32-byte value (the witness-commitment nonce); pearld uses zeros.                                                |
| Locktime (`locktime`)                                  | 4, offset 212  | 0 · 0: no time lock.                                                                                                                                                                                           |

- **txid:** 0a2acb6004406b21252d1578585dec84efd7e7547f1bca19c30c17538c51caa0
- **Size:** 216 bytes · 189 vbytes
- **Block:** 130,825

Its first output pays `cc84ce1d34000000`: read little-endian, 223,838,373,068 grains to a Taproot address. The second output is the zero-value witness commitment. Now check it:

1. **The subsidy at height 130,825**

   ⌊2.1 × 10¹⁷ × 650,226 ÷ (781,051 × 781,050)⌋ = **223,833,660,195** grains.

2. **The fees of the other 114 transactions**

   Their inputs minus their outputs, summed: **4,712,873** grains.

3. **The limit**

   223,833,660,195 + 4,712,873 = **223,838,373,068** grains: exactly what the coinbase claims, to the grain.

Other blocks check out the same way:

| Block   | Subsidy         | Fees      | Coinbase pays      |
| ------- | --------------- | --------- | ------------------ |
| 1       | 322,964,134,063 | 0         | 3,229.64134063 PRL |
| 120,000 | 230,169,535,033 | 0         | 2,301.69535033 PRL |
| 130,792 | 223,852,575,691 | 0         | 2,238.52575691 PRL |
| 130,825 | 223,833,660,195 | 4,712,873 | 2,238.38373068 PRL |
| 130,827 | 223,832,513,878 | 46,132    | 2,238.32560010 PRL |

Subsidies and fees are in grains; 1 PRL = 100,000,000 grains.

## How big are fees, compared with the subsidy?

Tiny, for now. Block 130,825 had 114 paying transactions, and their fees came to about 0.047 PRL, roughly 0.002% of its reward. Typical payments on 20 October 2026 paid about 50 grains per vbyte; the floor is 1 grain per vbyte.

Many blocks carry no fees at all. In a scan of 200 blocks ending at 130,825 (20 October 2026), 107, or 53%, held only the coinbase. For those, the reward is the subsidy and nothing more.

As the subsidy keeps shrinking, fees will matter more. How a fee is set is on [fees and vsize](https://pearlcodex.com/technical/transaction/fees-and-vsize/).

## Why wait 100 blocks before spending?

Because a block can be undone. If a competing branch with more work replaces it in a [reorg](https://pearlcodex.com/glossary/#reorg), its coinbase vanishes, and so do the coins it created. Ordinary transactions can usually be mined again in the new branch. A coinbase can’t: it belongs to the block that lost.

So the rules make new coins wait. A coinbase output from height h can only be spent in a block at height h + 100 or later. This is [coinbase maturity](https://pearlcodex.com/glossary/#coinbase-maturity), unchanged from Bitcoin:

| Coinbase mined in | Earliest block that may spend it |
| ----------------- | -------------------------------- |
| 130,825           | 130,925                          |
| 130,827           | 130,927                          |

By then, undoing the coinbase would mean out-working 100 blocks of the main chain. At the 194-second pace that’s about 5 hours 23 minutes of waiting.

## What did the genesis block pay?

Nothing. The formula itself returns 0 for height 0, and the genesis coinbase has a single output worth zero, locked by a bare `OP_RETURN`, which can never be spent. As a belt-and-braces measure, the code also singles it out: “the coinbase for the genesis block is not spendable”.

Block 1, one second later, was the first to pay a reward: 3,229.64134063 PRL. There is no premine. The full story is on [the genesis block](https://pearlcodex.com/technical/blockchain/genesis-block/).

**Make a guess:** A block contains only its coinbase. Its miner claims 2,000 PRL instead of the 2,238 PRL allowed. Can the next miner claim the missing 238 PRL?

**Answer:** No. The missing coins are never created.

Each block’s limit is its own subsidy plus its own fees. Nothing carries over, so the 238 PRL simply don’t exist. That’s why “issued so far” figures computed from the formula are a ceiling: real supply can only be equal or lower.

> **Pearl vs Bitcoin**
>
> The reward rules are Bitcoin’s: at most subsidy plus fees, a coinbase that starts with the block height (BIP-34), and 100 blocks before mined coins can move. What differs is the subsidy, which follows Pearl’s smooth curve instead of halvings, and the genesis block: Bitcoin’s paid 50 BTC that can never be spent, Pearl’s paid nothing at all. And Pearl enforces the height-in-coinbase rule from block 1, where Bitcoin switched it on at block 227,931.

**Code: the reward check and the maturity check**

The reward check, from [`validate.go`](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/blockchain/validate.go#L1069-L1084):

`node/blockchain/validate.go`

```go
var totalGrainOut int64
for _, txOut := range transactions[0].MsgTx().TxOut {
	totalGrainOut += txOut.Value
}
expectedGrainOut := CalcBlockSubsidy(node.height, b.chainParams) + totalFees
if totalGrainOut > expectedGrainOut {
	return ruleError(ErrBadCoinbaseValue, str)
}
```

The maturity check, from [`validate.go`](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/blockchain/validate.go#L900-L916), with `CoinbaseMaturity: 100` in [`params.go`](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/chaincfg/params.go#L356):

`node/blockchain/validate.go`

```go
if utxo.IsCoinBase() {
	originHeight := utxo.BlockHeight()
	blocksSincePrev := txHeight - originHeight
	if blocksSincePrev < int32(chainParams.CoinbaseMaturity) {
		return 0, ruleError(ErrImmatureSpend, str)
	}
}
```

How the coinbase itself is laid out, byte by byte, is on [coinbase transaction](https://pearlcodex.com/technical/transaction/coinbase/).

## In short

- A block’s reward is its subsidy, new PRL from the emission formula, plus every fee paid by its other transactions.
- The coinbase’s outputs may add up to at most that amount. Claiming one grain more makes the whole block invalid; claiming less simply leaves coins uncreated.
- Block 130,825’s coinbase pays 223,838,373,068 grains: a subsidy of 223,833,660,195 plus 4,712,873 grains of fees, exactly.
- Coinbase outputs can’t be spent until 100 blocks later, because a reorganization could erase the block that created them.
- The genesis block’s reward is zero by rule, and its single output is an unspendable OP_RETURN.

## Read the code

- [Coinbase outputs may not exceed subsidy + fees](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/blockchain/validate.go#L1069-L1084) `node/blockchain/validate.go:1069-1084`
- [CalcBlockSubsidy](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/blockchain/validate.go#L160-L190) `node/blockchain/validate.go:160-190`
- [Coinbase maturity, 100 blocks](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/blockchain/validate.go#L900-L916) `node/blockchain/validate.go:900-916`
- [CoinbaseMaturity: 100](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/chaincfg/params.go#L356) `node/chaincfg/params.go:356`
- [The genesis coinbase is not spendable](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/blockchain/validate.go#L1003-L1008) `node/blockchain/validate.go:1003-1008`

## Sources

### Pearl source

- [Pearl source code at v1.5.5](https://github.com/pearl-research-labs/pearl/tree/v1.5.5)

### Bitcoin standards

- [BIP-34: Block v2, height in coinbase](https://github.com/bitcoin/bips/blob/master/bip-0034.mediawiki)

### Chain data

- [Block 130,825 coinbase 0a2acb60…caa0 on Pearl's explorer](https://explorer.pearlresearch.ai/tx/0a2acb6004406b21252d1578585dec84efd7e7547f1bca19c30c17538c51caa0)
- [Block 1's coinbase (Pearl Blockbook API)](https://blockbook.pearlresearch.ai/api/v2/block/1)
