Skip to content

XRPL Ledger

The Ledger Backpack tracks your 5 core supplies as tokens on the XRPL Testnet. Every town checkpoint records a settlement receipt on-chain. At the end of your run, your trail ledger includes transaction IDs anyone can look up on the Testnet, until the Testnet is next wiped (see When the Testnet is reset).

Completely optional. The game plays identically with it off (the default).

Token Resource What it tracks
FOOD Food supply Consumption, hunting gains, trading
WATR Water supply Auto-refill at towns, terrain drain
MEDS Medicine Party health recovery
AMMO Ammunition Hunting costs, event rewards
PART Spare parts Repair action costs, trading

From the TUI, press L to open the ledger menu. With the backpack on, R proofs this save (PASS / FAIL / INCONCLUSIVE) and does not Rest. Or via CLI:

Terminal window
# Enable the backpack
trail ledger enable
# Check status
trail ledger status
# View wallet details
trail ledger wallet

At each town checkpoint, the game batches all supply changes since the last settlement into a single XRPL transaction. This keeps costs low and the ledger clean.

Terminal window
# Manually trigger a settlement
trail ledger settle
# Retry failed settlements
trail ledger reconcile

Players can trade supplies with each other on the XRPL Testnet:

Terminal window
# Share your address so others can send you supplies
trail wallet share
# Send supplies to another traveler
trail parcel send <address> food 10
# List received parcels
trail parcel list
# Accept a pending parcel
trail parcel accept <id>
# See what you've sent
trail parcel sent

Parcels arrive as pending and must be explicitly accepted before supplies are added to your inventory. You can also refuse parcels.

The settlement receipts make a claim: this is what your supplies did, recorded on a public ledger. trail ledger proof checks that claim against the ledger itself, on the loaded save (the run you actually played), and reports PASS, FAIL, or INCONCLUSIVE.

Terminal window
trail ledger proof

The TUI R key on the ledger menu is the same proof: it calls proof_player_save on the loaded save and paints the verdict. Camp R without that menu still Rests. Parcel R still refuses.

The proof reads the ledger itself, not only the save. It makes three checks: the token balances on the XRPL Testnet equal the supplies the save says were settled; the starting mint plus every saved settlement adds up to that final total; and each settlement’s on-chain memo, read back through AccountTx, begins with this run’s id and day.

What it does not check. The proof does not compare the amounts written in each on-chain memo with the per-checkpoint amounts in the save, so it shows that the save and the ledger agree in total, not that every saved entry is untouched. A save edited so that its totals still add up can pass. Treat a PASS as a consistency check between your save and the ledger, not as tamper-proofing. Until the Testnet is next reset, anyone with the transaction IDs can read the memos on the Testnet and compare them by hand.

If a settlement failed and left the chain incomplete, trail ledger reconcile retries the pending settlements first; the proof is only as complete as the receipts that actually landed. INCONCLUSIVE means the ledger couldn’t confirm the run, not supply drift: pending checkpoints, a read that failed, or accounts the Testnet no longer has (see below). Re-run trail ledger proof after reconcile when the Testnet recovers. Do not confuse the two: reconcile retries pending Payments; proof audits the loaded save.

The XRPL Testnet is a test network, and it is wiped from time to time. A reset deletes every account, balance and transaction on it; the network’s address stays the same. Resets are announced in advance on the xrpl.org blog; the one on 2026-11-25 was announced on 2026-11-09.

After a reset, a save made before it names an issuer and a player account that no longer exist:

  • trail ledger proof reports INCONCLUSIVE and names the missing account, when the save agrees with itself: its starting mint plus its settlements add up to its last settled supplies, and its memos name this run. A reset alone never makes it report FAIL. A save whose own totals or memos don’t add up still reports FAIL, ledger or no ledger.
  • trail ledger reconcile stops before sending anything and says why. Pending checkpoints can’t be settled on accounts that are gone, so retrying later won’t help.
  • trail ledger wallet and the backpack screen say the account is not on the ledger, instead of showing an empty pack.
  • The transaction IDs in your trail ledger no longer resolve on the Testnet or in an explorer.

Your run itself is untouched: supplies are kept locally, and the game plays the same with the backpack’s ledger gone.

Every finished run leaves a keepsake. The end-of-run screen surfaces an XRPL postcard — a small on-chain memento of the journey — alongside the run’s stats and an export/share path, so a finished run leaves something you can keep and pass along. The postcard is drawn from the same ledger that recorded your supplies, which is why it lives here rather than in the engine alone.

  • Bundled in the npx / GitHub Release binary; for pip installs, run pip install "escape-the-valley[xrpl]" (or pip install -e ".[xrpl]") for the xrpl-py dependency
  • XRPL Testnet only — no real value, no mainnet support
  • Internet connection for settlement transactions
  • All XRPL operations use Testnet exclusively
  • Wallet keys are stored locally, never transmitted except for signing
  • No telemetry, no accounts, no cloud state
  • See SECURITY.md for the full threat model