Proof of Transfer (PoX)

In the previous sections, we took a look at the vision and ethos of Stacks and talked a lot about it being connected to Bitcoin and how it enables expanding functionality without modifying Bitcoin itself. In this section, we'll run through the block production mechanism that makes that happen, Proof of Transfer.

circle-info

This section will be a conceptual overview of Proof of Transfer. For more details on exactly how block production happens at a technical level, check out the section on Block Production.

What is Proof of Transfer?

The Stacks layer relies on STX and on BTC for its novel consensus mechanism, called Proof of Transfer (PoX), that utilizes both the Stacks and Bitcoin layers. PoX is similar in spirit to Bitcoin’s Proof of Work (PoW) consensus: Like how Bitcoin PoW miners spend electricity and are rewarded in BTC, Stacks PoX miners spend (already mined) BTC and are rewarded in STX.

Like PoW, PoX uses a single-leader election: PoX miners bid by simply spending BTC, and they have a bid-weighted random probability of becoming a leader. Leader election happens on the Bitcoin chain and new blocks are written on the Stacks layer. In this way, PoX reuses work already done by Bitcoin miners, and does not consume any significant amount of additional electricity: only the cost of running normal laptops/computers for Stacks nodes to bid using BTC.

Like PoW, PoX is permissionless: Anyone can be a Stacks miner, as long as they are willing to spend BTC. Also, any STX holder can lock their STX (called “stacking”) to participate in PoX consensus, and earn Bitcoin rewards for doing useful work for the system, i.e., for being a signatory for the decentralized Bitcoin peg. In keeping with Bitcoin ethos, Stackers are rewarded for their positive contributions to the system and inhibited by economic disincentives from behaving poorly (but unlike in bonded Proof of Stake systems, they are not "slashed").

Finally, the nature of PoX consensus is such that the price ratio between BTC and STX is continually recorded and available on-chain, serving as an on-chain Bitcoin price oracle. This is valuable for the decentralized peg, removing the need for an external oracle, as described in the companion paper about the peg.

The below diagram flowcharts the PoX consensus mechanism amongst its relevant participants.

As depicted in the flowchart, Proof of Transfer also provides two critical dynamics that work together to secure and operate the network.

  1. Economic – BTC is transferred from miners to stackers, creating a bidirectional incentive structure rooted in Bitcoin itself. Miners commit BTC to participate in block production, effectively competing for the right to produce the next Stacks block. In return, successful miners earn newly minted STX and transaction fees. Stackers, on the other hand, lock their STX to support consensus and receive the BTC committed by miners as a reward. This mechanism ties the Stacks economy directly to Bitcoin, aligning incentives across participants and anchoring security in a real, external asset rather than relying solely on inflation or internal token mechanics.

  2. Programmatic – Beyond economic incentives, PoX provides the technical coordination layer that determines how blocks are produced, validated, and finalized. Miner BTC commitments on Bitcoin serve as inputs into leader selection, which determines who can construct the next Stacks block. Once produced, blocks are cryptographically linked and anchored to Bitcoin, inheriting its settlement assurances. In this way, PoX is not just an economic exchange mechanism — it is the consensus engine that orchestrates block construction, ordering, and finality while maintaining a verifiable connection to Bitcoin L1.

Who are the participants in Proof of Transfer?


Breakdown of PoX's Core Components

chevron-rightLeader Election (Miners)hashtag

Who gets to mine the next tenure of Stacks blocks?

Participants: Miners

  • Idea: Spend BTC to win a chance at producing blocks

  • Single-leader election through cryptographic sortition

  • Embed verifiable random function (VRF) state in Bitcoin transactions

  • Deterministic but unpredictable winner at each Bitcoin block

  • Mining through block commits: (block hash, VRF seed) pair

  • VRF seed = hash(VRF proof)

chevron-rightReward Set (Stackers)hashtag

But where does the BTC spent by miners go?

Participants: Stackers that are either solo stacking or pool stacking

  • Idea: Spent BTC (from miners) are sent to STX holders

  • Expected BTC payout is a function of your-lockup over total-lockup

  • Locked STX never leave your account, and will unlock automatically

  • Takes unproductive STX our of circulation

  • Reward Cycle: 2100 Bitcoin blocks

  • Reward Phase: first 2000 Bitcoin blocks

  • Prepare Phase: last 100 Bitcoin blocks

  • Anchor block: first Stacks block confirmed in prepare phase

  • Reward Set: snapshot of locked STX in anchor block

chevron-rightBlock Signers (Signers)hashtag

Can locked STX secure the network as well?

Participants: Stackers that are taking on the role of a Signer

  • Idea: Use PoX yield to incentivize good chain QoS

  • PoX yield as a salary to replicate and sequence blocks

  • Stacks select Signer public key when they stack

  • Signers sign blocks from miner with weighted signature (by # reward slots)

  • Once 70%+ of reward slots sign off, block is appended

  • Block signer set changes once per reward cycle

  • 70%+ or more signers assumed to be online and honest

  • Honest Signers vote to withhold (burn) faulty Stackers' subsequent BTC


Technical Implementation Details

The Proof of Transfer functionality is implemented on the Stacks network as a Clarity smart contract.

Proof of Transfer has went through multiple iterations over the years. Below lists the different smart contract implementations of Proof of Transfer.

A walkthrough of the current PoX 4 contract is available in the Example Contracts section.


Wrapping it up: PoX in a nutshell

• PoX selects a randomized single-leader block miner once per BTC block • PoX incentivizes miners to make STX blocks and earn STX coinbase + tx fees • PoX incentivizes STX holders to lock up STX to get BTC yield from miners • PoX disincentivizes BTC L1 miners from interfering • PoX incentivizes Stackers, as a Signer, to keep the network healthy


Additional Resources

Last updated

Was this helpful?