Skip to main content

English | 日本語 | 中文 | Español | Français | हिन्दी | Italiano | Português (BR)

XRPL Lab

CI PyPI npm MIT License Landing Page

XRPL training workbook — learn by doing, prove by artifact.

Each module teaches one XRPL skill and produces a verifiable artifact: a transaction ID, a signed receipt, or a diagnostic report. No accounts, no fluff, no cloud — just competence and receipts.

XRPL Lab dashboard showing completed modules with quick actions and status panels

Install

pipx install xrpl-lab

Or with pip:

pip install xrpl-lab

Requires Python 3.11+.

Quickstart

xrpl-lab start

The guided launcher walks you through wallet setup, funding, and your first module.

Offline mode

xrpl-lab start --dry-run

No network required. Simulated transactions for learning the workflow.

Modules

32 modules across ten tracks: Foundations, NFTs, Tokens, Payments, Identity, DEX, Reserves, Audit, AMM, and Capstone. Prerequisites are explicit — the CLI and linter enforce them.

The # column matches the order shown by xrpl-lab list (canonical track order).

# Module Track Mode Prerequisites Produces
1 Receipt Literacy foundations testnet — txid, report
2 Failure Literacy foundations testnet Receipt Literacy txid, report
3 Trust Lines 101: Issued Currencies as Relationships foundations testnet — txid, report
4 Debugging Trust Lines foundations testnet Trust Lines 101: Issued Currencies as Relationships txid, report
5 Multisig Treasury (SignerListSet): N-of-M Control of the Studio Wallet foundations testnet Receipt Literacy txid, report
6 NFT Minting 101: Your First Game Asset nfts testnet — txid, report
7 NFT Marketplace 101: Trading Assets with Enforced Royalties nfts testnet — txid, report
8 Dynamic NFTs 101: A Game Item That Levels Up nfts testnet — txid, report
9 MPT Issuance 101: A Game Currency in One Transaction tokens testnet — txid, report
10 MPT Distribution 101: Getting the Currency to Players tokens testnet MPT Issuance 101: A Game Currency in One Transaction txid, report
11 Token Freeze 101: The Issuer's Pause Button tokens testnet — txid, report
12 Clawback 101: The Issuer Recall Lever tokens testnet — txid, report
13 Escrow 101: Time-Locked XRP payments testnet — txid, report
14 Escrow Finish 101: Releasing Locked XRP payments testnet Escrow 101: Time-Locked XRP txid, report
15 Token Escrow (XLS-85): Locking IOUs, Not Just XRP payments testnet Trust Lines 101: Issued Currencies as Relationships, Escrow 101: Time-Locked XRP txid, report
16 Checks 101: Deferred Pull-Payments (CheckCreate / CheckCash / CheckCancel) payments testnet Receipt Literacy txid, report
17 Payment Channels 101: Sign Many, Settle Once payments testnet — txid, report
18 Delivered Amount: The Partial-Payment Exploit payments testnet Trust Lines 101: Issued Currencies as Relationships txid, report
19 Custodial Player Crediting: One Pooled Wallet, Many Players (Destination Tags) payments testnet Delivered Amount: The Partial-Payment Exploit txid, report
20 DID 101: On-Ledger Identity identity testnet — txid, report
21 Credentials 101 (XLS-70): On-Ledger KYC & Age Attestations identity testnet DID 101: On-Ledger Identity txid, report
22 Permissioned Domains & Gated DEX (XLS-80/81): Compliant, Credential-Gated Trading identity testnet Credentials 101 (XLS-70): On-Ledger KYC & Age Attestations txid, report
23 Deposit Gate (DepositAuth + DepositPreauth): Credential-Gated Treasury Deposits identity testnet Credentials 101 (XLS-70): On-Ledger KYC & Age Attestations txid, report
24 DEX Literacy: Offers, Order Books, and Cancellations dex testnet Trust Lines 101: Issued Currencies as Relationships txid, report
25 DEX Market Making 101: Earning Spread on the Order Book dex testnet DEX Literacy: Offers, Order Books, and Cancellations txid, report
26 DEX Inventory Guardrails: Don't Get Lopsided dex testnet DEX Market Making 101: Earning Spread on the Order Book txid, report
27 Reserves 101: Where Your XRP 'Went' reserves testnet Trust Lines 101: Issued Currencies as Relationships txid, report
28 Account Hygiene: Freeing Reserves and Cleaning Up Objects reserves testnet Reserves 101: Where Your XRP 'Went' txid, report
29 Audit Mode: Verify Receipts at Scale audit testnet Receipt Literacy report, audit_pack
30 AMM Liquidity 101: Providing Liquidity and Earning Fees amm dry-run Trust Lines 101: Issued Currencies as Relationships txid, report
31 DEX vs AMM Risk Literacy: Comparing Trading Strategies amm dry-run DEX Market Making 101: Earning Spread on the Order Book, AMM Liquidity 101: Providing Liquidity and Earning Fees txid, report
32 Capstone: Stand Up a Minimal Game Economy on XRPL capstone testnet MPT Issuance 101: A Game Currency in One Transaction, NFT Minting 101: Your First Game Asset, Escrow 101: Time-Locked XRP, Audit Mode: Verify Receipts at Scale txid, report, audit_pack

The Produces column lists the artifact kinds each module emits (txid, report, audit_pack); see each module's page in the handbook for the full skill walkthrough and what you prove on-ledger.

Tracks

  • foundations — wallet, payments, trust lines, error handling
  • nfts — NFT game assets: minting, marketplace settlement, dynamic NFTs (XLS-20)
  • tokens — Multi-Purpose Token (MPT) game-currency issuance & clawback (XLS-33)
  • payments — escrow & time-locked value
  • identity — Decentralized Identifiers (DID, XLS-40)
  • dex — offers, order books, market making, inventory management
  • reserves — account reserves, owner count, cleanup
  • audit — batch verification, audit reports
  • amm — automated market maker liquidity, DEX vs AMM comparison
  • capstone — compose skills across tracks into one game-economy build

Modes

  • testnet — real transactions on the XRPL Testnet
  • dry-run — offline sandbox with simulated transactions (no network required)

Commands

xrpl-lab start              Guided launcher
xrpl-lab list               Show all modules with status and progression
xrpl-lab run <module_id>    Run a specific module
xrpl-lab status [--json]    Progress, curriculum position, blockers, track progress
xrpl-lab cohort-status [--dir DIR] [--format FORMAT]  Aggregate per-learner status across a cohort directory (facilitator)
xrpl-lab session-export [--dir DIR] [--format FORMAT] [--outfile FILE]  Archive all learner artifacts with a SHA-256 manifest
xrpl-lab tracks             Track-level completion summaries
xrpl-lab recovery           Diagnose stuck states, show recovery commands
xrpl-lab lint [glob] [--json] [--no-curriculum]  Validate module files and curriculum
xrpl-lab proof-pack         Export shareable proof pack
xrpl-lab proof generate     Export shareable proof pack (alias of proof-pack)
xrpl-lab proof verify <file>  Verify a proof pack's integrity (SHA-256)
xrpl-lab certificate        Export completion certificate
xrpl-lab cert-verify <file>   Verify a completion certificate's integrity
xrpl-lab doctor             Run diagnostic checks
xrpl-lab self-check         Alias for doctor
xrpl-lab feedback           Generate support bundle (markdown)
xrpl-lab support-bundle [--json] [--verify FILE]  Generate or verify support bundles
xrpl-lab audit              Batch verify transactions
xrpl-lab audit-verify <file>  Verify an audit pack's SHA-256 integrity
xrpl-lab last-run           Show last module run + audit command
xrpl-lab serve [--port N] [--host H] [--dry-run]  Start web dashboard and API server
xrpl-lab reset [--module MODULE_ID]  Wipe local state OR reset a single module (requires confirmation)
xrpl-lab module init --id ID --track TRACK --title TITLE --time TIME  Scaffold a lint-passing module skeleton

xrpl-lab wallet create      Create a new wallet
xrpl-lab wallet show        Show wallet info (no secrets)
xrpl-lab fund               Fund wallet from testnet faucet
xrpl-lab send --to <address> --amount <xrp> [--memo <text>]  Send a payment
xrpl-lab verify --tx <id>   Verify a transaction on-ledger

All commands support --dry-run for offline mode where applicable.

Workshop Use

XRPL Lab is designed for real teaching settings. No accounts, no telemetry, no cloud. Everything runs locally.

Facilitator dashboard listing active learner runs with module IDs, dry-run badges, status, queue depth, and run IDs

Facilitator status

xrpl-lab status             # Where is this learner? What's blocked? What's next?
xrpl-lab status --json      # Machine-readable for scripting
xrpl-lab tracks             # Track-level completion: what was actually practiced
xrpl-lab recovery           # Stuck? See exactly what to run next

Support handoff

xrpl-lab support-bundle              # Human-readable markdown bundle
xrpl-lab support-bundle --json       # Machine-parseable JSON
xrpl-lab support-bundle --verify bundle.json  # Verify a received bundle

A facilitator can diagnose any learner's issue from a support bundle without reproducing the whole session. No secrets are included.

Workshop flows

All-offline sandbox — no network required:

xrpl-lab wallet create
xrpl-lab start --dry-run

Mixed offline + testnet — real transactions for basics, sandbox for advanced:

xrpl-lab wallet create
xrpl-lab fund
xrpl-lab start

Camp → Lab progression — continue from xrpl-camp:

xrpl-lab start    # auto-detects camp wallet and certificate

Artifacts

Proof pack (xrpl_lab_proof_pack.json): Shareable record of completed modules, transaction IDs, and explorer links. Includes a SHA-256 integrity hash. No secrets.

Certificate (xrpl_lab_certificate.json): Slim completion record.

Reports (reports/*.md): Human-readable summaries of what you did and proved.

Audit packs (audit_pack_*.json): Batch verification results with SHA-256 integrity hash.

Security and Trust Model

Data XRPL Lab touches:

  • Wallet seed (stored locally in ~/.xrpl-lab/wallet.json as plaintext JSON — POSIX mode 0o600 / 0o700 parent, or an owner-only ACL on Windows; not encrypted)
  • Module progress and transaction IDs (stored in ~/.xrpl-lab/state.json, atomic writes via tmp + rename)
  • XRPL Testnet RPC (public endpoint, transactions signed locally before submission)
  • Testnet faucet (public HTTP, only your address is sent)

Data XRPL Lab does NOT touch:

  • No mainnet. Testnet only
  • No telemetry, analytics, or phone-home of any kind
  • No cloud accounts, no registration, no third-party APIs
  • No secrets in proof packs, certificates, reports, or support bundles — ever

Permissions and storage tiers:

  • Home ~/.xrpl-lab/ — private secrets tier (POSIX 0o700 / 0o600, or an owner-only ACL on Windows). Stores wallet seed, doctor log, audit packs.
  • Workspace ./.xrpl-lab/ — designed-shareable tier, 0o755 directory. Stores module reports, proof packs, certificates. Facilitators can review without permission elevation.
  • Filesystem: reads/writes only the two locations above
  • Network: XRPL Testnet RPC + faucet only (both overridable via env vars, both optional with --dry-run)
  • No elevated permissions required

Dashboard surface (when xrpl-lab serve is running):

  • WebSocket runner endpoint enforces an Origin allow-list (closes non-allow-listed connections with code 4003)
  • All error frames emit a structured envelope (code, message, hint, severity, icon_hint) — no path leakage, no internal-state leakage
  • Bounded per-connection message queue with documented back-pressure behavior

See SECURITY.md for the full security policy and workshop-setup guidance.

Requirements

  • Python 3.11+
  • Internet connection for testnet (or use --dry-run for fully offline mode)

License

MIT

Built by MCP Tool Shop

Metadata

Release files for xrpl-lab 2.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xrpl-lab 2.5.1
File Size Uploaded
xrpl_lab-2.5.1.tar.gz 2.7 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for xrpl-lab 2.5.1
File Interpreter ABI Platform
xrpl_lab-2.5.1-py3-none-any.whl Python 3 none any Details

Total release size: 3.2 MB

Release files / xrpl_lab-2.5.1.tar.gz

Download URL xrpl_lab-2.5.1.tar.gz
Size 2.7 MB
Tags Source
SHA-256 checksum
How to use checksums
c59c9dfcc994dd8b38aa5d2dadead0947607ebf4fed8f0d785eb12aea1f58cff
BLAKE2b-256 checksum
How to use checksums
a50d88007c7bacb5ce9a0e9f06200b7401c7adaa1c0b38911b569b58e856e536
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.

Transparency log

Release files / xrpl_lab-2.5.1-py3-none-any.whl

Download URL xrpl_lab-2.5.1-py3-none-any.whl
Size 449.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
422b8113c28d674d4c52bd75c895c6c5867b1e4e3b5fb59a133c2ed9b3bfce7e
BLAKE2b-256 checksum
How to use checksums
9654ab00b45ec50eed93a5e2dddbe7cfed4dcd9c9c46c5adf778ff3a27c7d4a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

2.5.1 This release

2 release files

2.5.0

2 release files

2.4.0

2 release files

2.3.0

2 release files

2.2.0

2 release files

2.0.0

2 release files

1.8.0

2 release files

1.7.1

2 release files

1.7.0

2 release files

1.6.0

2 release files

1.5.0

2 release files

1.0.5

2 release files

1.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page