Skip to content
Integra Protocol
API

@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

PropertyType
acceptedPaymentRequirements
accountstring
feestring
lastLedgerSequencenumber
requiredPaymentRequired
sequencenumber
ticketSequence?number

Variables

exactXrpl

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

On this page