> For the complete documentation index, see [llms.txt](https://docs.stacks.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stacks.co/learn/stacks-101/proof-of-transfer.md).

# Proof of Transfer (PoX)

<div data-with-frame="true"><figure><picture><source srcset="/files/eEXaz8fjg3UCeKOJGGhT" media="(prefers-color-scheme: dark)"><img src="https://2842511454-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH74xqoobupBWwBsVMJhK%2Fuploads%2FEUW1W0NPEuoCYBtienyL%2Fpox.png?alt=media&amp;token=2edba99c-91f7-4df2-8ea1-aceb9f3bb712" alt=""></picture><figcaption></figcaption></figure></div>

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.

{% hint style="info" %}
This is a conceptual overview. For how block production works step by step, see [Block Production](/learn/block-production.md). For how to take part and what you earn, see [Bitcoin Staking](/learn/bitcoin-staking.md).
{% endhint %}

### 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.

<div data-with-frame="true"><figure><img src="https://2842511454-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH74xqoobupBWwBsVMJhK%2Fuploads%2Fdvz2r48jmk1I1ON8gTVt%2Fpox-mechanism.png?alt=media&amp;token=d12e9577-fa8e-4505-b6a5-132aa8b7ef62" alt="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."><figcaption><p>Two currencies moving in opposite directions. BTC flows from miners to participants; STX flows from the protocol to miners.</p></figcaption></figure></div>

### 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 | [Mining](/learn/block-production/mining.md)   |
| Stacks signers   | Validate and append blocks. A block is accepted once signers holding at least 70% of the weight approve it               | [Signing](/learn/block-production/signing.md) |
| Bitcoin stakers  | Lock BTC on Bitcoin L1 under their own keys, paired with STX, and earn BTC-denominated yield                             | [Bitcoin Staking](/learn/bitcoin-staking.md)  |
| STX-only stakers | Stake STX to a signer and earn a share of what is left after bond obligations are met                                    | [Staking](/learn/block-production/staking.md) |

<div data-with-frame="true"><figure><img src="https://2842511454-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH74xqoobupBWwBsVMJhK%2Fuploads%2FzAtvzskQHJVfcsoeztzV%2Fpox-participants.png?alt=media&amp;token=3bb65c7d-41f7-4d5f-9914-4bc65bf8b523" alt="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."><figcaption><p>Staked STX is what gives signers their weight. Miner BTC is what pays the yield.</p></figcaption></figure></div>

### How the mechanism works

{% stepper %}
{% step %}
**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.
{% endstep %}

{% step %}
**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.
{% endstep %}

{% step %}
**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.
{% endstep %}
{% endstepper %}

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.

<div data-with-frame="true"><figure><img src="https://2842511454-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH74xqoobupBWwBsVMJhK%2Fuploads%2FMUtNf02zRPRN1sQ357Y1%2Fpox-reward-cycle.png?alt=media&amp;token=50a2728e-507f-40ea-89e3-19dd449c5143" alt="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&#x27;s signer set is determined."><figcaption><p>The cycle repeats without pause: the block after the prepare phase is block 0 of the next cycle.</p></figcaption></figure></div>

### 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.

| Version | Date       | Mainnet contract                                                                                         | SIP                                                                                                  |
| ------- | ---------- | -------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| PoX 5   | 2026-07-30 | [SP000000000000000000002Q6VF78.pox-5](https://explorer.hiro.so/txid/SP000000000000000000002Q6VF78.pox-5) | [SIP-045](https://github.com/stacksgov/sips/blob/main/sips/sip-045/sip-045-pox-5-bitcoin-staking.md) |
| PoX 4   | 2024-04-22 | [SP000000000000000000002Q6VF78.pox-4](https://explorer.hiro.so/txid/SP000000000000000000002Q6VF78.pox-4) | [SIP-021](https://github.com/stacksgov/sips/blob/main/sips/sip-021/sip-021-nakamoto.md)              |
| PoX 3   | 2023-05-27 | [SP000000000000000000002Q6VF78.pox-3](https://explorer.hiro.so/txid/SP000000000000000000002Q6VF78.pox-3) | [SIP-022](https://github.com/stacksgov/sips/blob/main/sips/sip-022/sip-022-emergency-pox-fix.md)     |
| PoX 2   | 2023-03-20 | [SP000000000000000000002Q6VF78.pox-2](https://explorer.hiro.so/txid/SP000000000000000000002Q6VF78.pox-2) | [SIP-015](https://github.com/stacksgov/sips/blob/main/sips/sip-015/sip-015-network-upgrade.md)       |
| PoX 1   | 2021-01-15 | [SP000000000000000000002Q6VF78.pox](https://explorer.hiro.so/txid/SP000000000000000000002Q6VF78.pox)     | [SIP-007](https://github.com/stacksgov/sips/blob/main/sips/sip-007/sip-007-stacking-consensus.md)    |

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](https://docs.stacks.co/operate/staking-stx/whats-changed-in-pox-5).

The [Example Contracts](/cookbook/clarity/example-contracts.md) section includes a walkthrough of the PoX-4 contract.

***

### Additional Resources

* \[[SIP-001](https://github.com/stacksgov/sips/blob/main/sips/sip-001/sip-001-burn-election.md)] SIP-001 provides a full list of reasons why Bitcoin was chosen to secure Stacks.
* \[[SIP-007](https://github.com/stacksgov/sips/blob/main/sips/sip-007/sip-007-stacking-consensus.md)] Details of the original design for stacking and Proof of Transfer.
* \[[SIP-021](https://github.com/stacksgov/sips/blob/main/sips/sip-021/sip-021-nakamoto.md)] Nakamoto Upgrade: Fast and reliable blocks
* \[[SIP-045](https://github.com/stacksgov/sips/blob/main/sips/sip-045/sip-045-pox-5-bitcoin-staking.md)] PoX-5: Bitcoin Staking and the emission schedule
* \[[Stacks Developers YT](https://youtu.be/YynwIJIXJWw?si=9DXsd9PzMN14xt-L)] PoX: Under the Hood
* \[[Stacks Developers YT](https://youtu.be/4UJ3ZK8JsrI?si=m8VSVIuCwIyOe3pe)] How Do Developers Test the Stacks Network?
* \[[Hiro YT](https://youtu.be/2Bmo1cK0C8k?si=uiYaXudIhjxkNaS6)] A Breakdown of Stacks' Proof of Transfer Smart Contract


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.stacks.co/learn/stacks-101/proof-of-transfer.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
