BR Academy
0%
How XRP and the XRP Ledger Work·Lesson 5 of 35·10 min

XRP Ledger Architecture

The concept

The XRP Ledger is, structurally, a shared state plus a network of servers that keep that state synchronized. Understanding the pieces separately will make the consensus mechanism in the next lesson much easier to follow.

The ledger state is the data itself: account balances, trust lines (relationships that let an account hold an issued currency from another account, rather than just XRP), open offers on the built-in exchange, escrow objects, and various other ledger objects. This state updates every time the network closes a new ledger — roughly every three to five seconds. Each validated ledger carries a sequence number and a hash that commits to everything in it, so any node can verify, independently, that its copy of the state matches what the network agreed on.

The network is made up of servers running rippled, the open-source software that implements the XRP Ledger protocol. These servers come in two broad roles. Tracking nodes relay transactions and maintain a copy of the ledger but do not vote on what the next validated ledger should contain — they're the read-and-relay layer most wallets, exchanges, and block explorers connect to. Validating nodes (validators) participate directly in the consensus process described in the next lesson — proposing and converging on the next ledger version. Running a validator does not require mining hardware or staked capital; it requires running the software reliably and being trusted by other participants, a distinction that matters a great deal when you get to the centralization discussion in Module 6.

The ledger close cycle replaces the block-mining model you may know from Bitcoin. Instead of competing to solve a puzzle, validators run rounds of proposal and agreement (RPCA, next lesson) and converge on a new ledger roughly every three to five seconds. There is no "block reward" paid to whoever produces the next ledger — a structural difference from Bitcoin's and Ethereum's incentive models, with implications for the token economics you'll study in Module 3.

XRPL-native features worth knowing about now, each covered in more depth later: trust lines let an account hold and transact in a currency issued by another account (e.g., a bank-issued stablecoin) without a smart contract; a built-in decentralized exchange lets any account place buy/sell offers for any currency pair directly on the ledger; escrow objects lock XRP until a release condition is met (Lesson 3.2); and reserve requirements (a base reserve plus a smaller reserve per additional ledger object an account owns) keep the ledger's state lean by giving every account a small, non-speculative cost for the resources it consumes — covered fully in Lesson 4.3.

It's also worth knowing that rippled servers can run in different operational modes depending on how much ledger history they store. A full-history server retains every validated ledger back to genesis; many production servers instead retain a rolling, more recent window of history, sufficient for everyday operation, and rely on full-history servers elsewhere on the network when older data is needed. This is a practical, not a consensus-relevant, distinction — it affects what a given server can answer a query about, not whether it can participate correctly in the current ledger-close cycle.

Worked example

Trace a single ledger close end to end:

  1. A user submits a transaction (for example, a payment) to a server they're connected to.
  2. That server relays the transaction across the peer-to-peer network, so it reaches validators.
  3. Validators include the transaction in their own proposed candidate set for the next ledger.
  4. Validators run the consensus process (RPCA, covered in the next lesson) to converge on one agreed set of transactions.
  5. Once a supermajority of trusted validators agrees, that set becomes the new validated ledger — permanent, final, and available to every node on the network.

Steps 3 and 4 are where RPCA does its work; this lesson's job is just to show you where consensus fits into the larger cycle, so the mechanics in the next lesson have a home to attach to.

Now contrast this with what a tracking node does during the same cycle: it never proposes a candidate set or votes. It simply relays the user's transaction toward the validators in step 2, and once the new validated ledger is published in step 5, it downloads and applies that result to its own copy of the ledger state — serving that updated state to whatever wallet, exchange, or application is connected to it. A tracking node is a consumer and relay of consensus outcomes, never a participant in producing them.

Exercise

Label the following XRPL architecture components using the word bank below, matching each term to its role in the cycle described above:

Word bank: ledger state, tracking node, validator, ledger close, peer-to-peer network

  1. ______: Holds account balances, trust lines, and open offers; updates every few seconds.
  2. ______: Relays transactions and maintains a copy of the ledger, but does not vote on consensus.
  3. ______: Proposes and converges on the next ledger version through RPCA.
  4. ______: The roughly 3–5 second cycle in which a new ledger version is agreed and validated.
  5. ______: The web of rippled servers that propagate transactions across the network.

Answer key: 1. Ledger state — 2. Tracking node — 3. Validator — 4. Ledger close — 5. Peer-to-peer network.

If you mislabeled the difference between a tracking node and a validator, re-read the second paragraph above before continuing — this distinction is the foundation for Lesson 2.3 (Validators and the Network).

A second check: if a wallet application connects only to tracking nodes and never to a validator directly, can it still submit transactions and see them settle correctly? Yes — a tracking node relays the submitted transaction into the network reaching validators (step 2 above) and then reports back the validated result; the wallet does not need a direct connection to a validator to transact correctly, which is exactly why most end-user applications connect to tracking nodes rather than running their own validator.

Recap

  • The XRP Ledger separates shared state (balances, trust lines, offers, escrow) from the network of servers (tracking nodes and validators) that maintain and update it every three to five seconds.
  • There is no mining or block-reward model; validators converge on the next ledger through a consensus process, not a computational race, while tracking nodes relay and serve that result without voting.
  • XRPL-native features — trust lines, a built-in DEX, escrow, and reserve requirements — are built directly into the protocol rather than added as smart contracts, a structural choice that recurs throughout this course.

Resources

  • XRP Ledger architecture overview, XRPL.org — https://xrpl.org/docs/concepts/networks-and-servers
  • rippled server software repository — https://github.com/XRPLF/rippled
  • Ledger object types reference, XRPL.org — https://xrpl.org/docs/references/protocol/ledger-data/ledger-entry-types