RLUSD Guide¶
Use this after the Testnet XRP quickstart is already working.
What This Guide Covers¶
- creating or recovering the disposable RLUSD claim wallet
- claiming RLUSD with the existing helper flow
- switching the merchant and buyer demo from XRP to RLUSD
Prerequisites¶
- the XRP quickstart has completed successfully
- you have a
TRYRLUSD_SESSION_TOKENfor the RLUSD faucet flow
Export the session token:
export TRYRLUSD_SESSION_TOKEN=...
Then run the helper:
python -m devtools.rlusd_topup
The helper will:
- reuse the cached shared merchant wallet and the dedicated RLUSD buyer wallet
- create or recover a disposable RLUSD claim wallet
- create the RLUSD trustline
- attempt the faucet claim when the session and cooldown allow it
- sweep claimed RLUSD back into the canonical wallet when possible
- fund the dedicated RLUSD buyer wallet after recovery so the RLUSD demo signs with the same wallet it was funded for
If the helper reports a pending or rate-limited claim, rerun it later.
Switch The Demo To RLUSD¶
Generate a derived env file:
python -m devtools.demo_env --asset rlusd
That writes .env.quickstart.rlusd with the RLUSD merchant pricing, buyer asset selection,
the RLUSD buyer seed, and any facilitator-side ALLOWED_ISSUED_ASSETS entry
needed for the chosen issuer.
Then restart the stack and rerun the buyer:
docker compose --env-file .env.quickstart.rlusd up --build
docker compose --env-file .env.quickstart.rlusd --profile demo run --rm buyer
The merchant example will price /premium in RLUSD, and the buyer example will select the matching issued-asset payment option.
Notes¶
- The default Testnet RLUSD issuer can be overridden with
XRPL_TESTNET_RLUSD_ISSUER. - Claim state is stored under
.live-test-wallets/rlusd-claim-state.json. - The helper manages trustline cleanup and account deletion for disposable claim wallets when the ledger allows it.
- The RLUSD buyer wallet is separate from the XRP and USDC buyers so those demo runs can sign in parallel.