For the complete documentation index, see llms.txt. This page is also available as Markdown.

Proof of Transfer (PoX)

In the previous sections we looked at the vision and ethos of Stacks, and at how it connects to Bitcoin without modifying Bitcoin itself. This section covers the mechanism that makes that work, Proof of Transfer, and the five versions it has been through.

This is a conceptual overview. For how block production works step by step, see Block Production. For how to take part and what you earn, see Bitcoin Staking.

What is Proof of Transfer?

The Stacks layer relies on both STX and BTC for its consensus mechanism, Proof of Transfer. PoX is similar in spirit to Bitcoin's Proof of Work: where Bitcoin miners spend electricity and are rewarded in BTC, Stacks miners spend already-mined BTC and are rewarded in STX.

Like Proof of Work, PoX uses a single-leader election. Miners bid by spending BTC and have a bid-weighted random probability of becoming the leader. Leader election happens on the Bitcoin chain; new blocks are written on the Stacks layer. PoX reuses work Bitcoin miners have already done and consumes no significant additional electricity.

Like Proof of Work, PoX is permissionless. Anyone can mine, as long as they are willing to spend BTC. Anyone holding STX can lock it to help secure the chain and earn Bitcoin-denominated rewards, and holders of BTC can do the same by bonding it.

PoX gives the network two properties that work together.

Economic. Miner BTC funds the rewards paid to participants, so the Stacks economy is anchored to Bitcoin rather than to inflation alone. Miners commit BTC to compete for the right to produce blocks and earn newly minted STX plus transaction fees in return. The BTC they commit is what participants are paid from.

Programmatic. Miner BTC commitments on Bitcoin are the input to leader selection, which determines who builds the next Stacks block. Blocks are then cryptographically linked and anchored to Bitcoin, inheriting its settlement assurances. PoX is not only an exchange of value: it is the consensus engine that orders and finalises blocks while keeping a verifiable link to Bitcoin L1.

Proof of Transfer as a loop between two currencies. Miners spend already-mined BTC to compete for the right to produce a tenure of Stacks blocks, and earn the STX coinbase plus transaction fees in return. The programmatic side runs every Bitcoin block: leader election by a sortition weighted by committed BTC, the winner produces the tenure, and signers validate and append the blocks once 70 percent of signer weight accepts them. The economic side shows every block-commit paying a single output into one reward pool, which auto-bridges to sBTC and pays out in a fixed order: active protocol bonds at their target rate first, then STX-only stakers pro rata from the residual, then the reserve fund. The contract holds no participant addresses and no BTC is burned.
Two currencies moving in opposite directions. BTC flows from miners to participants; STX flows from the protocol to miners.

Who takes part

Four roles, each documented in full elsewhere.

Role
What they do
Where to read more

Miners

Spend BTC to compete for the right to produce a tenure of Stacks blocks, and earn the STX coinbase plus transaction fees

Stacks signers

Validate and append blocks. A block is accepted once signers holding at least 70% of the weight approve it

Bitcoin stakers

Lock BTC on Bitcoin L1 under their own keys, paired with STX, and earn BTC-denominated yield

STX-only stakers

Stake STX to a signer and earn a share of what is left after bond obligations are met

The four roles side by side. Miners spend BTC, produce a tenure of Stacks blocks, and earn the STX coinbase plus fees. Stacks signers validate and append blocks, and 70 percent of weight accepts a block, where weight is staked STX. Bitcoin stakers lock BTC and STX, either native BTC on L1 under their own keys or sBTC, solo or pooled, and earn BTC yield paid first. STX-only stakers stake STX to a signer while it stays in their own account, and earn the residual. Staked STX is what gives a signer its weight, subject to a 50,000 STX minimum counted in aggregate per signer.
Staked STX is what gives signers their weight. Miner BTC is what pays the yield.

How the mechanism works

1

Leader election

Miners commit BTC in a Bitcoin transaction carrying a block hash and a VRF seed. A cryptographic sortition picks one winner per Bitcoin block, deterministically but unpredictably, weighted by the BTC each miner committed. The winner produces that tenure's Stacks blocks.

2

Reward distribution

The BTC miners commit funds the reward pool. Under PoX-5 each block-commit pays a single output, the pool auto-bridges to sBTC, and payouts are made through a three-tranche waterfall: active protocol bonds first, then STX-only stakers, then the reserve. A distribution is calculated every 1,050 Bitcoin blocks, twice per reward cycle.

3

Block signing

Signers replicate and sequence blocks proposed by the miner. Each signer's vote is weighted, and a block is appended once signers holding at least 70% of the weight have approved it. The signer set is fixed for a reward cycle and is determined during the prepare phase.

Cycle structure is the same in every version of PoX: a reward cycle is 2,100 Bitcoin blocks, made up of a reward phase of 2,000 blocks followed by a prepare phase of 100. The anchor block is the first Stacks block confirmed in the prepare phase, and the next cycle's signer set is determined from the chain state at that block.

A reward cycle drawn as a horizontal bar of 2,100 Bitcoin blocks, numbered 0 to 2,099. The first 2,000 blocks are the reward phase and the last 100 are the prepare phase, followed immediately by the next cycle. Two markers sit on the bar: distributions are calculated every 1,050 blocks, twice per reward cycle, and the anchor block is the first Stacks block confirmed in the prepare phase, from which the next cycle's signer set is determined.
The cycle repeats without pause: the block after the prepare phase is block 0 of the next cycle.

Versions of Proof of Transfer

Proof of Transfer is implemented on the Stacks network as a Clarity smart contract, and has been through five versions.

PoX-5 is the largest change since the original design. Miner BTC no longer pays stacker reward addresses directly and nothing is burned, and BTC holders can now take part by bonding BTC rather than only by holding STX. For what changed and what former stackers needed to do, see What's Changed in PoX-5.

The Example Contracts section includes a walkthrough of the PoX-4 contract.


Additional Resources

  • [SIP-001] SIP-001 provides a full list of reasons why Bitcoin was chosen to secure Stacks.

  • [SIP-007] Details of the original design for stacking and Proof of Transfer.

  • [SIP-021] Nakamoto Upgrade: Fast and reliable blocks

  • [SIP-045] PoX-5: Bitcoin Staking and the emission schedule

  • [Stacks Developers YT] PoX: Under the Hood

  • [Stacks Developers YT] How Do Developers Test the Stacks Network?

  • [Hiro YT] A Breakdown of Stacks' Proof of Transfer Smart Contract

Last updated

Was this helpful?