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: defaults to XRPL 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.1.tar.gz (9.8 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.1-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file xrpl_x402_payer-0.1.1.tar.gz.

File metadata

  • Download URL: xrpl_x402_payer-0.1.1.tar.gz
  • Upload date:
  • Size: 9.8 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.1.tar.gz
Algorithm Hash digest
SHA256 4f4039cb826d47c19de9a7cf00f399967f4cf608f5bd8fafb0d68047f28f89af
MD5 a275bf02fd8536d54f41a36c702eeaf2
BLAKE2b-256 5e6c4b842a86dfbb53d02e4fa42308ab54d468ac7e9e5442bd36370a537b70e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for xrpl_x402_payer-0.1.1.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.1-py3-none-any.whl.

File metadata

File hashes

Hashes for xrpl_x402_payer-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7f13b792bbc8f2fee4e77f91e4c91f3bc68b5e76835908fb26192bc810769dfb
MD5 a33f89b0b48219dd5fb5177f5491e0be
BLAKE2b-256 3e1069e88f0d6f275169feef390349c69b05571238888c2277b1f4b2c6891c3d

See more details on using hashes here.

Provenance

The following attestation bundles were made for xrpl_x402_payer-0.1.1-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