@integraledger/lcp/x402-exact-xrpl
The exports of @integraledger/lcp/x402-exact-xrpl.
Interfaces
XrplChoice
Properties
| Property | Type |
|---|---|
accepted | PaymentRequirements |
account | string |
fee | string |
lastLedgerSequence | number |
required | PaymentRequired |
sequence | number |
ticketSequence? | number |
XrplPaymentPayload
A payment on this pairing: the wallet's signed blob, hex.
Properties
| Property | Type |
|---|---|
accepted | PaymentRequirements |
extensions? | object |
payload | object |
payload.signedTxBlob | string |
resource? | object |
resource.url | string |
x402Version | 2 |
Variables
exactXrpl
constexactXrpl:Readonly<{advertise: (doc,h,link,offer,agreementUrl?) =>Refusal|PaymentRequired;bound: (presented) =>Promise<`0x${string}`|Refusal>;build: (c,h) =>Promise<Refusal|XrplUnsigned<XrplPaymentPayload>>;carrier:"extra.invoiceId";claims:boolean;id:"x402/exact/xrpl";pattern:LcpPattern;read: (doc) =>Refusal|X402Read;reference: (presented) =>Promise<Refusal|Omit<XrplRef,"fromLedger">>;status: (ref,reader) =>Promise<XrplStatus>;tie: (accepts,request) => ["x402", {accepts: readonlyPaymentRequirements[];request:RequestCommitment; }];unplaced: (option) =>PaymentRequirements; }>
Functions
pairingOf()
pairingOf(
option):"x402/exact/xrpl"|undefined
This pairing's id for an option it can pay, or undefined.
Parameters
| Parameter | Type |
|---|---|
option | PaymentRequirements |
Returns
"x402/exact/xrpl" | undefined
Last updated on