xrpl-mpp-payer
Operator-facing CLI, proxy, receipt store, spend policy, and optional agent
service built on xrpl-mpp-client.
pip install xrpl-mpp-payer
xrpl-mpp --help
For the optional payer agent server:
pip install "xrpl-mpp-payer[mcp]"
xrpl-mpp mcp
Typical commands:
export XRPL_MPP_EXPECTED_RECIPIENT=rYourApprovedMerchantAddress
xrpl-mpp pay https://merchant.example/premium --dry-run
xrpl-mpp pay https://merchant.example/metered --intent session --amount 1 --channel-funding-amount 1000000
xrpl-mpp pay https://merchant.example/metered --intent session --channel-id AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA --cumulative-amount 25000
xrpl-mpp close https://merchant.example/metered --channel-id AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA --cumulative-amount 50000
xrpl-mpp proxy https://merchant.example --port 8787
xrpl-mpp receipts
xrpl-mpp budget
Configure wallet material through environment variables or a secret manager and apply strict network, recipient, currency, and spend policy. Do not give an agent an unlimited funded wallet or rely on model-generated arguments as the only policy boundary.
MPP 0.2 uses named XRPL networks (mainnet, testnet, devnet) and
currencies encoded as XRP or a canonical JSON descriptor. Session amounts
are incremental drops and PayChannel vouchers are cumulative. The removed
prepaid session token, use, and top_up shapes are not accepted.
Automatic signing fails closed unless the merchant recipient is explicitly
approved with --recipient or XRPL_MPP_EXPECTED_RECIPIENT. The payer binds
that recipient together with the selected currency and resolved spend cap in
an XRPLPaymentPolicy; challenges must expire and may be valid for at most 300
seconds. A registered channel retains its approved recipient for close only.
Buyer RPC endpoints require HTTPS. ALLOW_INSECURE_XRPL_RPC=true permits only
an exact localhost or loopback HTTP endpoint for development.
XRPL_MPP_MAX_FEE_DROPS caps the final autofilled transaction fee (default
1,000 drops). Optional IOU pathfinding requires both
XRPL_MPP_IOU_SOURCE_CURRENCY and XRPL_MPP_IOU_MAX_SOURCE_AMOUNT; the latter
is an absolute source-side ceiling, in XRP drops or issued-currency units.
XRPL_MPP_IOU_SLIPPAGE_BPS defaults to 50 and is bounded to 0-1000.
Successful charge receipts are recorded only after the receipt reference is cryptographically bound to the exact transaction or push hash that the payer authorized. A forged success receipt raises and does not create a local audit record.
The close command signs and sends a final cumulative voucher. It does not
submit the funder's XRPL tfClose transaction, delete the channel, or refund
unused XRP. Those remain a separate on-ledger funder responsibility after the
recipient has had an opportunity to redeem its highest claim.
The optional payer agent server exposes controlled buyer behavior. For native
MPP payment metadata inside an MCP/JSON-RPC server, use the separate
xrpl-mpp-mcp package.
The agent tools intentionally do not accept a recipient or spend-cap override
from model-generated arguments. Non-dry-run pay_url, close_channel, and
proxy_mode load both XRPL_MPP_EXPECTED_RECIPIENT and
XRPL_MPP_MAX_SPEND from operator-controlled process configuration. The
environment cap remains a ceiling even when lower request-specific limits are
used elsewhere.
Documentation: https://lgcarrier.github.io/xrpl-mpp-stack/packages/payer/
Metadata
Release files for xrpl-mpp-payer 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| xrpl_mpp_payer-0.2.0.tar.gz | 17.8 kB | With provenance | Details for xrpl_mpp_payer-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| xrpl_mpp_payer-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for xrpl_mpp_payer-0.2.0-py3-none-any.whl |
Total release size: 39.2 kB
Release files / xrpl_mpp_payer-0.2.0.tar.gz
| Download URL | xrpl_mpp_payer-0.2.0.tar.gz |
|---|---|
| Size | 17.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7eb0d6ec98787209b29cd156d4442b95703254e201aaecba03211654b65e9509
|
|
BLAKE2b-256 checksum How to use checksums |
c64e9102c9f227d5a8ac5f4c8cc80281b23e62afc108e75ab4e628f71a4749c3
|
| 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 Sep 3, 2026.
Transparency logRelease files / xrpl_mpp_payer-0.2.0-py3-none-any.whl
| Download URL | xrpl_mpp_payer-0.2.0-py3-none-any.whl |
|---|---|
| Size | 21.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fcf3226e20072ded6f920ebc5ec0ea178809ce188922df7e70107be18dbfd71b
|
|
BLAKE2b-256 checksum How to use checksums |
47cc0f1f2ea9d5b1509188998a708177951dfa0157243861fb3722ffc3474d92
|
| 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 Sep 3, 2026.
Transparency logSecurity for xrpl-mpp-payer 0.2.0
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for xrpl_mpp_payer-0.2.0.tar.gz
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 Sep 3, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.