How XRP Consensus Works

The protocol that enables 3-5 second transactions

⚡ TL;DR

XRP validators vote on transactions instead of mining. They share proposals, iterate until 80%+ agree, and confirm transactions in 3-5 seconds. No energy-intensive mining, no staking required, immediate finality.

3-5s
Consensus Time
80%
Agreement Threshold
4-6
Voting Rounds
0
Energy Waste

What Type of Consensus is XRP?

⛏️

Proof of Work

Miners compete to solve puzzles. Energy-intensive, slow but battle-tested.

Used by: Bitcoin, Litecoin
🥩

Proof of Stake

Validators stake tokens as collateral. Energy-efficient, moderately fast.

Used by: Ethereum, Cardano
🤝

Federated Consensus

Trusted validators vote on transactions. No mining, no staking, very fast.

Used by: XRP, Stellar
Key Difference: Bitcoin miners compete against each other (wasteful but secure). XRP validators cooperate with each other (efficient and fast). Different philosophies, both work.

The Consensus Process Step-by-Step

1

Transaction Submitted

You send XRP. Your transaction is broadcast to the network and collected by validators into a "candidate set."

2

Initial Proposal

Each validator proposes which transactions from the candidate set should be included in the next ledger. They share these proposals with validators on their UNL (trusted list).

3

Voting Rounds

Validators compare proposals and update their own. Over 4-6 rounds, they converge on a common set. Transactions without enough support are deferred to the next ledger.

4

80% Threshold

When 80%+ of a validator's UNL agrees on a transaction set, consensus is reached. This supermajority ensures security while enabling speed.

5

Ledger Closes

The new ledger is finalized and published. Your transaction is confirmed - permanently, irreversibly. Total time: 3-5 seconds.

The 80% Threshold Explained

Supermajority Required for Consensus

80% Must Agree
20%

For any transaction to be confirmed, at least 80% of validators in a node's UNL must agree it's valid. This prevents:

  • Minority attacks: Even 20% malicious validators can't manipulate the ledger
  • Network splits: High threshold ensures all honest nodes stay in sync
  • Double-spends: Can't confirm conflicting transactions

XRP vs Bitcoin: Visual Comparison

XRP Consensus

🤝

Cooperate to agree
Validators vote together
3-5 seconds
Minimal energy

Bitcoin Mining

⚔️

Compete to win
Miners race to solve puzzles
10-60 minutes
Massive energy

Consensus Comparison Table

Aspect XRP (Federated) Bitcoin (PoW) Ethereum (PoS)
Confirmation Time 3-5 seconds 10-60 minutes 12-15 seconds
Finality Immediate Probabilistic (6 blocks) ~15 minutes
Energy Usage Minimal ~150 TWh/year Low
Requirements Trusted validators Mining hardware 32 ETH stake
51% Attack Not possible Theoretically possible Very expensive
Throughput 1,500+ TPS ~7 TPS ~15-30 TPS

Why This Design?

Trade-offs XRP Makes

  • Speed over maximum decentralization: 150 validators is enough for security while enabling 3-5 second consensus
  • Efficiency over mining rewards: No block rewards means no inflation, but validators aren't financially incentivized
  • Trust-based over trustless: You trust your UNL validators, but anyone can create their own UNL
  • Finality over reversibility: Transactions are immediately final - good for payments, no "undo" option
Design Philosophy: XRPL was built for payments, not as a general-purpose blockchain. The consensus mechanism reflects this - optimized for fast, cheap, final transactions.

Common Questions Answered

❓ "Isn't trusting validators centralized?"

The UNL is a trust mechanism, not a control mechanism. You choose who to trust. If you disagree with the default UNL, create your own. The network has 150+ validators - Ripple controls only ~4%. Decentralization comes from validator diversity.

❓ "What if validators collude?"

For 80% to collude, you'd need ~28 of the 35 default UNL validators to coordinate. They're run by competitors (exchanges, universities, different companies). Economic and reputational incentives prevent this. Also, you'd notice and change your UNL.

❓ "Why don't validators get paid?"

They run validators for other reasons: ensuring network access for their business (exchanges), influence over governance, research (universities), or community support. No inflation = no dilution of existing holders.

Frequently Asked Questions

How does XRP consensus work?
XRP uses the XRP Ledger Consensus Protocol (XRPLCP), a form of Federated Byzantine Agreement. Validators collect pending transactions, propose which should be included, share proposals with trusted validators (their UNL), and iterate through voting rounds until 80%+ agree. This achieves consensus in 3-5 seconds without energy-intensive mining.
Is XRP proof of work or proof of stake?
Neither. XRP uses a unique consensus protocol called Federated Byzantine Agreement (FBA). It doesn't require energy-intensive puzzle solving like Proof of Work (Bitcoin), or token staking as collateral like Proof of Stake (Ethereum). Instead, trusted validators vote on transactions and reach agreement through iterative consensus rounds.
Why is XRP consensus so fast?
XRP achieves speed because validators cooperate rather than compete. There are no puzzles to solve (like Bitcoin's mining), no waiting for multiple block confirmations. Validators share proposals simultaneously, iterate through 4-6 rounds to reach agreement, and close ledgers every 3-5 seconds with immediate, irreversible finality.
What is the 80% threshold in XRP consensus?
For a transaction to be confirmed, 80% of validators in a node's Unique Node List (UNL) must agree it's valid. This supermajority requirement ensures security - even if 20% of validators are malicious or offline, the network continues operating correctly. It prevents any minority from blocking or manipulating transactions.
Can XRP transactions be reversed?
No. Once the consensus process confirms a transaction (which takes 3-5 seconds), it is permanently recorded in the ledger and cannot be reversed by anyone - not validators, not Ripple, not anyone. This immediate finality is a key feature that makes XRP suitable for payments and settlement.
How is XRP consensus different from Bitcoin?
Bitcoin miners compete against each other to solve cryptographic puzzles (Proof of Work), using massive amounts of energy. The winner gets to add the next block. XRP validators cooperate with each other to vote on transactions (Federated Consensus), using minimal energy. The result: Bitcoin takes 10-60 minutes with high fees and energy use; XRP takes 3-5 seconds with near-zero fees and minimal energy.