In Bitcoin, the question "which transaction pays my block?" has a trivial answer: look at the coinbase of the block you mined. In Kaspa it does not. Blocks are produced in parallel at 10 blocks per second, so one block's coinbase routinely pays *several* miners at once — including miners of blocks that arrived before it and were folded in later. Your reward can live inside someone else's transaction.
This piece explains the machinery behind that: the selected chain, chain blocks, the mergeset, blue/red classification, and the deterministic rule that maps a block hash to a specific output in a specific coinbase.
The problem: parallel blocks, one ledger
Kaspa's BlockDAG lets many blocks be mined at once instead of orphaning all but one. That solves throughput — but it creates a bookkeeping problem. If five blocks arrive "at the same time", who is the authority that says they happened, in what order, and who pays their miners?
Kaspa's answer is that reward accounting is *deferred*. A block you mine is not paid by itself. It is paid by the first block on the selected chain that absorbs it. The unit of absorption is the mergeset.
Step by step: from tips to coinbase outputs
1. The virtual block points at all current tips. Like any block, it has a selected parent (the selected tip), chosen by GHOSTDAG. Walking down selected-parent links from that tip gives you the selected chain — the backbone that determines the order of events in the DAG. Because the virtual block's point of view changes as new blocks arrive, the selected chain can change too; that is a reorg. In a wide DAG small reorgs are frequent, but GHOSTDAG's guarantee is that the chain stabilizes very quickly up to a short suffix.
2. Chain blocks are the record-keepers. A block on the selected chain is a *chain block*, and the network recursively accepts its point of view. Everyone else's blocks are raw material waiting to be merged.
3. The mergeset is the batch. For a chain block C, the mergeset is everything reachable from C but not from C's selected parent — and it includes the selected parent itself.
Mergeset — the set of blocks a chain block C reaches but its selected parent does not: the parallel work C formally folds into the ledger. C is the *merging block* for each of them, and the *accepting block* for their valid transactions.
4. Every merged block is classified twice. From C's perspective, a block B in the mergeset is either blue (well-connected; it contributes to security) or red (not). Independently, B is either inside C's DAA window or not — the window is 2641 blocks, counted backward from the virtual block's perspective, and roughly speaking a block falls outside it when a long time (the wiki's rough figure is around 45 minutes) has passed between its mining and publication, meaning it is highly disconnected. Two useful facts fall out: if a block is blue it is surely inside the DAA window, and the selected parent is both by definition.
5. The mergeset is put in GHOSTDAG order. Sorted by increasing blue work, with hash (lexicographically) as tiebreak. This order is what decides output positions.
6. C builds its coinbase. Walking the mergeset in that order, C appends one output per blue block B: the coinbase subsidy computed from the emission schedule and the current DAA score, plus the fees of all accepted transactions B included. If C's mergeset also contains red blocks that are still in the DAA window, C appends one more output — paid to *itself* — covering their reward.
for B in mergeset(C) in GHOSTDAG order:
if B is blue:
coinbase.append( subsidy(DAA_score) + fees_accepted_by(B) ) -> B.miner
if red_blocks_in_window(C) exists:
coinbase.append( their reward ) -> C.miner
7. Only chain blocks' coinbases survive. A non-chain block performs all the same calculations, but once the DAG stabilizes its coinbase and self-reward transactions are simply not considered valid and are discarded by each node.
Finding "your" output
Given a mined block hash B, the exact reward is computable — nothing has to be trusted:
C = chain block that merged B
if B in C.mergeset_reds: -> no reward for B
if B in C.mergeset_blues:
i = position of B in C.mergeset_blues (GHOSTDAG order)
-> i-th output of C's coinbase pays B's miner
if B is itself a chain block with red + in-window blocks merged:
-> last output of B's own coinbase pays B's miner
(check: coinbase has |B.mergeset_blues| + 1 entries)
Two counter-intuitive consequences are worth stating plainly. First, the fees your block collected reach you through *another* block's coinbase output, bundled with your subsidy. Second, a red block is not "late but paid" — it is unpaid. Its reward does not vanish from the emission schedule either: red-and-in-window blocks are paid out to the merging chain block's miner, so the total still flows according to the DAA-score-driven emission, just not to the red block's author.
A good analogy: the selected chain is the minute-taker of a long meeting. Many people speak in parallel (blocks). Each minute-taker (chain block) records everyone it heard since the last minutes (the mergeset), flags some speakers as coherent participants (blue) and some as noise (red), and writes a single payout sheet (coinbase) for the batch. Speakers nobody in the chain ever heard are simply not in the record.
Why the DAA window is part of reward logic
The 2641-block DAA window exists first to stabilize the block rate: difficulty is computed from a moving window of blue blocks plus the red blocks that fit inside it, counted back from the virtual block. But the same window doubles as a liveness filter in reward accounting. A block that is so disconnected that it sits outside the window is not merely red — it does not even get its reward paid out to the merging miner. It is a cheap defense against blocks mined long ago and published late: stale work neither influences difficulty nor produces a payout.
Keep the two counters apart, because they measure different things: blue score counts blue blocks in a node's past, while DAA score equals blue score plus the number of red blocks merged *and rewarded so far* — and DAA score is what drives the emission rate.
How Kaspa Forge reads this
Anything that watches Kaspa for money movement eventually depends on mergeset reasoning, because "this transaction is in a block" is not the same statement as "this transaction is accepted".
- Payments and webhooks. When we accept KAS for a service or a listing, our indexer does not treat a shallow inclusion as final. It follows the selected chain: a transaction is settled when the block carrying it has been accepted by chain blocks deep enough that a reorg of the required depth is implausible. Shallow state stays explicitly provisional and gets rebuilt if the selected chain moves — the same reorg-aware design we use for Boards indexes and token balances, where any projection must be reconstructible from the DAG alone.
- Escrow and Deposit. A Kaspa Escrow deal or a Deposit collateral lock is an on-chain covenant UTXO. Its funding must be *accepted*, not just broadcast, before a contract path can be trusted to be spendable — and the timeout paths that depend on DAA score only make sense because DAA score is a deterministic, consensus-level counter, not a wall clock.
- Marketplace. A Marketplace listing that commits to escrow inherits the same rule: the storefront only considers a deal funded when the funding transaction has crossed the acceptance threshold.
- Arena. Blackjack and Dice settle real KAS in Room/Game UTXOs on mainnet, and a hand or a roll is only resolved once the transactions carrying the state transitions are accepted by chain blocks. Because the payout path is enforced by the covenant rather than by us, understanding *who pays whom* is a protocol question even for a game.
- Boards. Tips on Boards are ordinary transactions; their fees are credited to whichever block included them, by the rule above. Nothing about the tip is special to the DAG — which is exactly why the index can be dropped and rebuilt.
If you want to see where this attribution logic sits in our own stack, the Kaspa Forge architecture documentation describes the indexer and covenant layers, and the contracts and tooling are published at github.com/Kaspaforge/kaspaforge — including a contract selftest with 25 VM checks that you can run against a node yourself.
Trade-offs and honest boundaries
Red blocks are wasted work — on purpose. Parallelism means some blocks will be poorly connected and go unpaid. That is the price of not throwing away throughput to a single-chain bottleneck; the DAG keeps the work in the structure (red blocks still count toward security history in limited ways), but the reward engine is deliberately unforgiving about connectivity.
Attribution near the tip is not immutable. Small reorgs are frequent in a wide DAG. A block merged by chain block C today could in principle be merged by a different chain block after the selected chain shifts, which changes the coinbase containing its reward. GHOSTDAG's robustness means this settles within a short suffix, but "settles" is a probabilistic statement, not an instant one — which is why payment acceptance uses depth thresholds rather than single-block inclusion.
Classification is viewpoint-dependent. Blue/red and DAA-window membership are computed from a chain block's perspective. Different nodes at different moments can disagree transiently; consensus comes from the deterministic GHOSTDAG order of a mergeset once C is chosen, not from a global observer.
Fee policy is separate from reward policy. Whether a transaction enters a block is a wallet, mempool and miner policy question; whether the fees of an included transaction are paid to its miner is consensus. Keeping those layers apart is what makes fee behaviour upgradeable without splitting the network.
One product boundary to keep straight while reading anything on this blog: Arena Blackjack and Arena Dice are live games on Kaspa mainnet, with current rules in /docs/arena.html and /docs/dice.html and availability depending on open rooms. Duel, baccarat and Permissionless Tokens are roadmap ideas, not live products, and nothing in this article changes that.
The short version: in Kaspa you are not paid by your block. You are paid by the record-keeper that folded your block into the ledger — deterministically, at a fixed position, in an output anyone can compute from public data. That is a more complex rule than Bitcoin's, and it is what makes 10 blocks per second with a BlockDAG economically coherent.
Continue exploring
Kaspa Forge product documentation
Next useful step: open the non-custodial Desk
FAQ
What is a mergeset in Kaspa?
The set of blocks that a chain block C can reach but its selected parent cannot — the batch of parallel work C brings into the ordered ledger, including the selected parent itself.
Why do some mined Kaspa blocks earn no reward?
If a block is classified red by the chain block that merges it, that chain block writes no coinbase output for it. Red means the block was poorly connected from C's perspective.
What is a chain block?
A block on the selected chain — the path of selected-parent links down from the virtual block. Chain blocks define the order of events, and only their coinbase transactions stay valid once the DAG stabilizes.
Does a red block ever pay its miner?
Not directly. A chain block pays *itself* one extra coinbase output for every red block in its mergeset that is still inside the DAA window. The red block's own miner gets nothing.
Can a reorg change which block merges mine?
Yes, near the tip. Small reorgs are frequent in a wide DAG, so recent attribution can shift until the selected chain stabilizes up to a short suffix.
Where can I read more about Kaspa internals?
The public Kaspa wiki developers knowledge base covers virtual blocks, DAA windows, rewards and network behaviour.
Put your KAS where theft can be cancelled
A covenant vault on Kaspa mainnet: your keys, your rules, our tooling. Free on-chain, forever.
Create a vault
