@integraledger/lcp/x402-upto-xrpl
The `x402/upto/xrpl` pairing: x402's `upto` scheme on the XRP Ledger, at coverage `none`, its payment following an agreement on the same network.
For AI agents: this page as Markdown, and llms.txt, the index of every page.
The x402/upto/xrpl pairing: x402's upto scheme on the XRP Ledger, at coverage none, its payment following an
agreement on the same network.
The payer opens a payment channel to the option's payTo itself and presents the channel and its own account, so
nothing it signs carries the ATR hash. Settlement is read from the channel's create.
Interfaces
UptoXrplPayload
What the payer presents: the channel's id, the maximum its claim signs, the claim's signature, the channel's
PublicKey and the channel's Account (specs/schemes/upto/scheme_upto_xrpl.md:172-188 at x402 88b66dd4).
Properties
| Property | Type |
|---|---|
channelId | string |
maxAmount | string |
payer | string |
publicKey | string |
signature | string |
UptoXrplPaymentPayload
A payment on x402/upto/xrpl.
Properties
| Property | Type |
|---|---|
accepted | PaymentRequirements |
extensions? | object |
payload | UptoXrplPayload |
resource? | object |
resource.url | string |
x402Version | 2 |
Variables
uptoXrpl
constuptoXrpl:Readonly<{advertise: (doc,h,link,offer,agreementUrl?) =>Refusal|PaymentRequired;bound: (presented,_given?) =>Promise<Refusal|`0x${string}`>;broadcaster: (presented) =>Promise<Refusal|Broadcaster>;claims:boolean;data:PairingData;id:"x402/upto/xrpl";pattern:LcpPattern;read: (doc) =>Refusal|X402Read;reference: (presented,option,_given?) =>Promise<Refusal|Omit<XrplChannelRef,"fromLedger">>;status: (ref,reader,query) =>Promise<XrplStatus>;tie: (accepts,request) => ["x402", {accepts: readonlyPaymentRequirements[];request:RequestCommitment|ToolCallCommitment; }];unplaced: (option) =>Refusal|PaymentRequirements; }>
x402/upto/xrpl. The payer broadcasts (broadcaster answers "payer"): its client submits the channel's create
before it presents the payment, and the payment names that channel. status reads the create
(xrplChannelStatus). It has no build, the payer's own client opening the channel, and no recover, nothing on
the ledger carrying H.
References
Broadcaster
Re-exports Broadcaster
X402Read
Re-exports X402Read
Last updated on
@integraledger/lcp/x402-upto-solana
The `x402/upto/solana` pairing: the ATR hash placed as the option's `extra.memo` in LCP string form, written by the payer as the one Memo instruction of the transaction that opens a one-request payment channel.
@integraledger/lcp/xrpl
XRP Ledger rail pieces: the signed blob, its `InvoiceID` or memo carrying the ATR hash in each scheme's form, the transaction hash computed from the blob, the reads of a payment, an opening, a channel and a close through a bounded reader, and the payment channel's id and claim.