Skip to content
Integra Protocol
API

@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

PropertyType
channelIdstring
maxAmountstring
payerstring
publicKeystring
signaturestring

UptoXrplPaymentPayload

A payment on x402/upto/xrpl.

Properties

PropertyType
acceptedPaymentRequirements
extensions?object
payloadUptoXrplPayload
resource?object
resource.urlstring
x402Version2

Variables

uptoXrpl

const uptoXrpl: 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: readonly PaymentRequirements[]; 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

On this page