Skip to main content

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 payments
  • XRPL_RPC_URL: optional explicit RPC endpoint; when unset and XRPL_NETWORK=xrpl:1, the payer auto-selects a healthy public Testnet RPC
  • XRPL_NETWORK: defaults to xrpl:1
  • XRPL_X402_RECEIPTS_PATH: optional override for local receipt storage
  • XRPL_X402_MAX_SPEND: optional default spend cap used by budget_status

Public API

  • XRPLPayer
  • PayResult
  • ReceiptRecord
  • budget_status
  • get_receipts
  • pay_with_x402
  • create_proxy_app

Provenance

The implementation is independently developed for the open x402 protocol and does not copy x402-xrpl.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xrpl_x402_payer-0.1.2.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xrpl_x402_payer-0.1.2-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

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

Hashes for xrpl_x402_payer-0.1.2.tar.gz
Algorithm Hash digest
SHA256 fdee814d8fa70e452b4474624dd7ce88692f186f7356a183f5e818462c32a4c8
MD5 b8491128411c28e31d0f9564fae7b554
BLAKE2b-256 dbdda384c8fc6a9d1348e5b555586585b4a9b89ff5532a6b346318bbb98016fe

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xrpl_x402_payer-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for xrpl_x402_payer-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 87b568cf045b28f7f1426668d492fa21fabda16af39ee1f472d44a259fdf994c
MD5 69895d3d1e16d32a67290b1737577db7
BLAKE2b-256 c21b0ca1e07bc97b358549249d85d6ac9a176338bd994b1b942e26b051392ec0

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page