@integraledger/lcp/x402-exact-xrpl
The `x402/exact/xrpl` pairing: the ATR hash's LCP string placed as the option's `extra.invoiceId`, whose SHA-256 the payer signs as the Payment's `InvoiceID`.
For AI agents: this page as Markdown, and llms.txt, the index of every page.
The x402/exact/xrpl pairing: the ATR hash's LCP string placed as the option's extra.invoiceId, whose SHA-256 the
payer signs as the Payment's InvoiceID.
The hash is read back from the signed blob, single-signed or multisigned, and settlement is read by the payer's
instrument, its Account with the signed Sequence or ticket.
Interfaces
XrplChoice
Properties
| Property | Type |
|---|---|
accepted | PaymentRequirements |
account | string |
fee | string |
lastLedgerSequence | number |
required | PaymentRequired |
sequence | number |
ticketSequence? | number |
Variables
exactXrpl
constexactXrpl:Readonly<{advertise: (doc,h,link,offer,agreementUrl?) =>Refusal|PaymentRequired;bound: (presented,_given?) =>Promise<Refusal|`0x${string}`>;broadcaster: (presented) =>Promise<Refusal|Broadcaster>;build: (c,h) =>Promise<Refusal|XrplUnsigned<XrplPaymentPayload>>;claims:boolean;data:PairingData;id:"x402/exact/xrpl";pattern:LcpPattern;read: (doc) =>Refusal|X402Read;recover: (input,reader) =>Promise<Refusal|`0x${string}`>;reference: (presented,option,_given?) =>Promise<Refusal|Omit<XrplRef,"fromLedger">>;status: (ref,reader,query) =>Promise<XrplStatus>;tie: (accepts,request) => ["x402", {accepts: readonlyPaymentRequirements[];request:RequestCommitment|ToolCallCommitment; }];unplaced: (option) =>Refusal|PaymentRequirements; }>
x402/exact/xrpl. The payee broadcasts (broadcaster answers "payee"): the seller's facilitator submits the
signed Payment blob; status reads it by the payer's instrument (xrplStatus). recover returns the value the
landed Payment carries in H's place, its InvoiceID, the SHA-256 of H's LCP string, as 0x and 64 lowercase hex
digits (xrplInvoiceOf): a digest is not read back to H, so a holder of the ATR computes the SHA-256 of its own
H's LCP string and compares the two.
References
Broadcaster
Re-exports Broadcaster
X402Read
Re-exports X402Read
XrplPaymentPayload
Re-exports XrplPaymentPayload
XrplQuery
Re-exports XrplQuery
Last updated on
@integraledger/lcp/x402-exact-stellar
Stellar on x402: the pairing `x402/exact/stellar/precondition` (`exactStellarPrecondition`), an agreement in which the buyer signs a Soroban authorization of `transfer(buyer, payTo, amount)` and a 40-byte payload of H and that authorization's nonce.
@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.