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
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_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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efae0f10d73156fde70befc899997755e553382708f5f9e76f0efa533406b493
|
|
| MD5 |
c934f9897f059ea7e4d87629d2dda967
|
|
| BLAKE2b-256 |
57e9d4e5860c9c159ce988b4f0dea95869b7e42d092ac39a811f02030dc41a8c
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xrpl_x402_client-0.2.0.tar.gz -
Subject digest:
efae0f10d73156fde70befc899997755e553382708f5f9e76f0efa533406b493 - Sigstore transparency entry: 2704810814
- Sigstore integration time:
-
Permalink:
lgcarrier/xrpl-x402-stack@00a6ffce2c9e1cffefa5e2ba057401782e0b3b00 -
Branch / Tag:
refs/tags/client-v0.2.0 - Owner: https://github.com/lgcarrier
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-package.yml@00a6ffce2c9e1cffefa5e2ba057401782e0b3b00 -
Trigger Event:
push
-
Statement type:
File details
Details for the file xrpl_x402_client-0.2.0-py3-none-any.whl.
File metadata
- Download URL: xrpl_x402_client-0.2.0-py3-none-any.whl
- Upload date:
- Size: 10.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ba6b8ac4efb4b30df362a91ee5f1f83b210d873f7507c400f7788a1f5c076e3
|
|
| MD5 |
c0f0e925af3825db6c51a122971cb21c
|
|
| BLAKE2b-256 |
ca0d4309cfbe3011f84facc26531d16b2f615dff5f608ded57963ce6e9a24435
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xrpl_x402_client-0.2.0-py3-none-any.whl -
Subject digest:
7ba6b8ac4efb4b30df362a91ee5f1f83b210d873f7507c400f7788a1f5c076e3 - Sigstore transparency entry: 2704810825
- Sigstore integration time:
-
Permalink:
lgcarrier/xrpl-x402-stack@00a6ffce2c9e1cffefa5e2ba057401782e0b3b00 -
Branch / Tag:
refs/tags/client-v0.2.0 - Owner: https://github.com/lgcarrier
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-package.yml@00a6ffce2c9e1cffefa5e2ba057401782e0b3b00 -
Trigger Event:
push
-
Statement type: