Skip to main content

xrpl-x402-client

Client mechanism for x402 v2 exact XRPL payments.

from x402 import x402Client
from xrpl_x402_client import register_exact_xrpl_client

client = register_exact_xrpl_client(x402Client(), signer)
client.set_spend_controls({"max_amount_per_payment": "$1"})

ExactXRPLClientScheme constructs and signs sequence or ticket payments, derives LastLedgerSequence from the timeout, binds custom networks through NetworkID, hashes advertised invoice IDs, and emits only {"signedTxBlob": "..."} as the scheme payload.

Use XRPLAssetSpendLimit for XRP, USDC, or custom IOUs. These assets are not silently authorized by the default pegged-asset policy.

The XRPLPaymentTransport and wrap_httpx_with_xrpl_payment helpers use the official x402AsyncTransport, which retries a replayable protected request at most once. Custom async streaming bodies are sent exactly once and a 402 is returned to the caller without buffering, signing, or automatic retry.

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_client-0.2.0.tar.gz (8.6 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_client-0.2.0-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file xrpl_x402_client-0.2.0.tar.gz.

File metadata

  • Download URL: xrpl_x402_client-0.2.0.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for xrpl_x402_client-0.2.0.tar.gz
Algorithm Hash digest
SHA256 efae0f10d73156fde70befc899997755e553382708f5f9e76f0efa533406b493
MD5 c934f9897f059ea7e4d87629d2dda967
BLAKE2b-256 57e9d4e5860c9c159ce988b4f0dea95869b7e42d092ac39a811f02030dc41a8c

See more details on using hashes here.

Provenance

The following attestation bundles were made for xrpl_x402_client-0.2.0.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_client-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for xrpl_x402_client-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7ba6b8ac4efb4b30df362a91ee5f1f83b210d873f7507c400f7788a1f5c076e3
MD5 c0f0e925af3825db6c51a122971cb21c
BLAKE2b-256 ca0d4309cfbe3011f84facc26531d16b2f615dff5f608ded57963ce6e9a24435

See more details on using hashes here.

Provenance

The following attestation bundles were made for xrpl_x402_client-0.2.0-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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page