CLI, proxy, and MCP payer for XRPL exact x402 payments
Project description
xrpl-x402-payer
xrpl-x402-payer is the buyer-side CLI, proxy, and MCP package for the Open XRPL x402 Stack.
Install
pip install xrpl-x402-payer
Install MCP support for Claude Desktop, Cursor, and other local agents:
pip install "xrpl-x402-payer[mcp]"
CLI
xrpl-x402 pay https://merchant.example/premium --amount 0.001 --asset XRP --dry-run
xrpl-x402 proxy https://merchant.example --port 8787
xrpl-x402 skill install
xrpl-x402 mcp
pay sends one request, pays a valid x402 challenge when needed, and stores local receipts.
proxy runs a local forward proxy that auto-pays valid x402 challenges before retrying upstream.
skill install writes the bundled skill to ~/.agents/skills/xrpl-x402-payer/SKILL.md.
mcp starts the stdio MCP server for Claude Desktop, Cursor, and compatible local agent runtimes.
Claude Desktop / Cursor
claude mcp add xrpl-x402-payer -- xrpl-x402 mcp
Cursor can use the same command as a local MCP server.
Environment
XRPL_WALLET_SEED: wallet seed used for signing paymentsXRPL_RPC_URL: optional explicit RPC endpoint; when unset andXRPL_NETWORK=xrpl:1, the payer auto-selects a healthy public Testnet RPCXRPL_NETWORK: defaults toxrpl:1XRPL_X402_RECEIPTS_PATH: optional override for local receipt storageXRPL_X402_MAX_SPEND: optional default spend cap used bybudget_status
Public API
XRPLPayerPayResultReceiptRecordbudget_statusget_receiptspay_with_x402create_proxy_app
Provenance
The implementation is independently developed for the open x402 protocol and does not copy x402-xrpl.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xrpl_x402_payer-0.1.2.tar.gz.
File metadata
- Download URL: xrpl_x402_payer-0.1.2.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fdee814d8fa70e452b4474624dd7ce88692f186f7356a183f5e818462c32a4c8
|
|
| MD5 |
b8491128411c28e31d0f9564fae7b554
|
|
| BLAKE2b-256 |
dbdda384c8fc6a9d1348e5b555586585b4a9b89ff5532a6b346318bbb98016fe
|
Provenance
The following attestation bundles were made for xrpl_x402_payer-0.1.2.tar.gz:
Publisher:
publish-package.yml on lgcarrier/xrpl-x402-stack
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xrpl_x402_payer-0.1.2.tar.gz -
Subject digest:
fdee814d8fa70e452b4474624dd7ce88692f186f7356a183f5e818462c32a4c8 - Sigstore transparency entry: 1123450617
- Sigstore integration time:
-
Permalink:
lgcarrier/xrpl-x402-stack@cdd4c7d6a6dc8f42543fe816791f6b0602eebe75 -
Branch / Tag:
refs/tags/payer-v0.1.2 - Owner: https://github.com/lgcarrier
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-package.yml@cdd4c7d6a6dc8f42543fe816791f6b0602eebe75 -
Trigger Event:
push
-
Statement type:
File details
Details for the file xrpl_x402_payer-0.1.2-py3-none-any.whl.
File metadata
- Download URL: xrpl_x402_payer-0.1.2-py3-none-any.whl
- Upload date:
- Size: 13.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87b568cf045b28f7f1426668d492fa21fabda16af39ee1f472d44a259fdf994c
|
|
| MD5 |
69895d3d1e16d32a67290b1737577db7
|
|
| BLAKE2b-256 |
c21b0ca1e07bc97b358549249d85d6ac9a176338bd994b1b942e26b051392ec0
|
Provenance
The following attestation bundles were made for xrpl_x402_payer-0.1.2-py3-none-any.whl:
Publisher:
publish-package.yml on lgcarrier/xrpl-x402-stack
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xrpl_x402_payer-0.1.2-py3-none-any.whl -
Subject digest:
87b568cf045b28f7f1426668d492fa21fabda16af39ee1f472d44a259fdf994c - Sigstore transparency entry: 1123450666
- Sigstore integration time:
-
Permalink:
lgcarrier/xrpl-x402-stack@cdd4c7d6a6dc8f42543fe816791f6b0602eebe75 -
Branch / Tag:
refs/tags/payer-v0.1.2 - Owner: https://github.com/lgcarrier
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-package.yml@cdd4c7d6a6dc8f42543fe816791f6b0602eebe75 -
Trigger Event:
push
-
Statement type: