# Supply and grains

> Pearl's 2.1 billion PRL cap in grains, how much is issued so far, why the total never reaches the cap, and why MaxGrain (21 billion PRL) isn't the supply.

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

Pearl’s supply has a hard ceiling: 2.1 billion PRL. No block can push the total past it, because each block may only create what the emission formula allows, and the formula’s total never reaches the ceiling.

Inside the software, nobody counts in PRL. Every amount is a whole number of [grains](https://pearlcodex.com/glossary/#grain), the smallest unit, and one PRL is 100,000,000 of them.

## Try it

Convert between PRL and grains. Try 3,229.64134063 PRL, block 1’s subsidy, and see that it’s a whole number of grains.

_Interactive: PRL ↔ grains. Try it on the page: <https://pearlcodex.com/technical/emission/supply-and-grains/>_

## How big is 2.1 billion PRL in grains?

Multiply by a hundred million:

$$
2.1 \times 10^{9}\ \text{PRL} \times 10^{8}\ \tfrac{\text{grains}}{\text{PRL}} = 2.1 \times 10^{17}\ \text{grains}
$$

_210 quadrillion: 210,000,000,000,000,000._

Transactions store each amount as an 8-byte signed integer of grains. The largest such integer is about 9.22 × 10¹⁸, so the whole supply fits about 44 times over. No fractions, no rounding: amounts are exact.

A few grain amounts worth knowing:

- **1 PRL:** 100,000,000 grains
- **Block 1 subsidy:** 322,964,134,063 grains 3,229.64134063 PRL
- **Dust limit:** 333 grains smaller outputs are not relayed
- **Minimum relay fee:** 1 grain per vbyte
- **Total supply cap:** 2.1 × 10¹⁷ grains 2.1 billion PRL
- **MaxGrain:** 2.1 × 10¹⁸ grains a sanity bound, not the supply

## How much has been issued so far?

The emission curve gives the ceiling after any block h: 2.1 billion × h ÷ (h + 650,226) PRL. At the snapshot taken for this page, block 130,827 on 20 October 2026, that was **351,751,673.70 PRL**, 16.75% of the cap. The live figure is 351.8 million PRL.

Two things can make the real supply a little lower than that ceiling:

- **Under-claiming.** A miner may pay itself less than the block allows; the difference is never created. (See [block reward](https://pearlcodex.com/technical/emission/block-reward/).)
- **Rounding.** Each subsidy is rounded down to a whole grain. Through block 130,827 that dust adds up to 65,271 grains, 0.00065 PRL.

And some PRL, once issued, can never move: anything locked in an `OP_RETURN` output, for instance. They still count as issued.

## Will the supply ever reach 2.1 billion?

No. The fraction h ÷ (h + 650,226) gets ever closer to 1 and never touches it:

| Height        | Years at 194 s (nominal) | Issued | Subsidy per block |
| ------------- | ------------------------ | ------ | ----------------- |
| 650,226       | 4                        | 50%    | 807.41 PRL        |
| 1,950,678     | 12                       | 75%    | 201.85 PRL        |
| 6,502,260     | 40                       | 90.9%  | 26.69 PRL         |
| 2,147,483,647 | about 13,211             | 99.97% | 29,591 grains     |

The last row is the largest height Pearl’s software can count: heights are 32-bit signed integers, and 2,147,483,647 is the biggest. Even there, a block still creates 29,591 grains, and about 635,667 PRL of the cap would still be unissued (the curve alone leaves 635,656; rounding dust adds about 11 more). The subsidy never reaches zero within the heights the code can represent.

**Make a guess:** Every subsidy is rounded down to a whole grain. Over the first 650,226 blocks, how much does that rounding leave unissued?

**Answer:** 325,155 grains: about 0.0033 PRL.

Each block loses less than one grain to rounding, and Pearl’s code adds them up exactly: through block 650,226 the subsidies total 1,049,999,999.99674845 PRL, against exactly 1,050,000,000 on the curve. Dust, but real dust: the cap is a limit, not a target.

## What is MaxGrain, then?

Pearl’s code inherits a constant from btcd called `MaxGrain`:

$$
\text{MaxGrain} = 21 \times 10^{9}\ \text{PRL} \times 10^{8} = 2.1 \times 10^{18}\ \text{grains}
$$

It is a **sanity bound**: no single amount, and no total of a transaction’s outputs, may exceed it. It exists to throw out absurd numbers early. At 21 billion PRL it is ten times the real supply, so it can never be reached by honest coins. It is not the supply, and it doesn’t appear in the emission formula. The supply limit is the formula’s `totalSupply`, 2.1 billion PRL.

## Why grains, and why 100 million of them?

Same reason as Bitcoin’s satoshis: integers are exact, and a hundred million units per coin leaves room for tiny payments. Pearl kept the ratio and changed the name. Explorers and wallets show amounts in PRL with 8 decimals, like 2,238.38373068, which is just the grain count with a decimal point.

Because Pearl’s supply is a hundred times Bitcoin’s in coins, it is also a hundred times Bitcoin’s in smallest units: 2.1 × 10¹⁷ grains against 2.1 × 10¹⁵ satoshis.

> **Pearl vs Bitcoin**
>
> - **Cap:** 21 million BTC against 2.1 billion PRL.
> - **Smallest unit:** the satoshi and the grain are both a hundred-millionth of a coin.
> - **Sanity bound:** Bitcoin’s maximum amount check equals its 21 million supply. Pearl’s `MaxGrain` is 21 billion PRL, ten times the supply, so don’t read it as the cap.
> - **Tail:** Bitcoin’s subsidy rounds down to zero after its 33rd halving; Pearl’s is still 29,591 grains at the largest height its code can count.

**Code: the constants**

From [`btcutil/const.go`](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/btcutil/const.go#L10-L16):

`node/btcutil/const.go`

```go
// GrainPerPearl is the number of grains in one pearl (1 PRL).
GrainPerPearl = 1e8

// MaxGrain is the maximum transaction amount allowed in grains.
MaxGrain = 21e9 * GrainPerPearl
```

And the real supply limit, from [`validate.go`](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/blockchain/validate.go#L42-L44):

`node/blockchain/validate.go`

```go
// totalSupply is the maximum supply of tokens 2 billion and 100 million.
// Emission follows the formula: height / (height + emissionConstant) for cumulative supply.
totalSupply = 2100000000 * btcutil.GrainPerPearl
```

## In short

- The supply can never exceed 2.1 billion PRL, which is 2.1 × 10¹⁷ grains. One PRL is 100,000,000 grains, the smallest amount a transaction can move.
- By block 130,827 (20 October 2026), at most 351,751,673.70 PRL had been issued: 16.75% of the cap.
- The total approaches 2.1 billion but never reaches it. Each block rounds its subsidy down, and even at the largest height the software can count, a block still creates 29,591 grains.
- MaxGrain, 21 billion PRL, is a sanity limit on any single amount, ten times the supply. It is not the supply.
- Issued totals from the formula are a ceiling: a miner that claims less than allowed lowers the real supply for good.

## Read the code

- [GrainPerPearl = 1e8, MaxGrain = 21e9 PRL](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/btcutil/const.go#L10-L16) `node/btcutil/const.go:10-16`
- [totalSupply = 2,100,000,000 PRL in grains](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/blockchain/validate.go#L42-L44) `node/blockchain/validate.go:42-44`
- [Each output, and their total, must be at most MaxGrain](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/blockchain/validate.go#L236-L265) `node/blockchain/validate.go:236-265`
- [CalcBlockSubsidy](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/blockchain/validate.go#L160-L190) `node/blockchain/validate.go:160-190`

## Sources

### Pearl source

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

### Chain data

- [PRLScan (live supply and height)](https://prlscan.com)

### Other

- [Bitcoin Wiki: Controlled supply](https://en.bitcoin.it/wiki/Controlled_supply)
