@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.
For AI agents: this page as Markdown, and llms.txt, the index of every page.
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.
The transaction carries that payload as a signed-payload precondition. The entry point also exports the pairing's
choice type StellarPreconditionChoice, its assetTransferMethod LCP_PRECONDITION, and the Broadcaster type,
which every pairing's broadcaster answers.
Interfaces
StellarPreconditionChoice
The buyer's inputs to build: the chosen option, the buyer's simulated transaction, the current ledger, and the
buyer's account (G…), which must be the simulated transfer's from.
Properties
| Property | Type |
|---|---|
accepted | PaymentRequirements |
currentLedger | number |
payer | string |
required | PaymentRequired |
simulatedXdr | string |
Variables
exactStellarPrecondition
constexactStellarPrecondition:Readonly<{advertise: (doc,h,link,offer,agreementUrl?) =>Refusal|PaymentRequired;bound: (presented) =>Promise<Refusal|`0x${string}`>;broadcaster: (presented) =>Promise<Refusal|Broadcaster>;build: (c,h) =>Promise<Refusal|StellarUnsigned>;claims:boolean;data:PairingData;id:"x402/exact/stellar/precondition";pattern:LcpPattern;read: (doc) =>Refusal|X402Read;recover: (input,reader) =>Promise<Refusal|`0x${string}`>;reference: (presented,option) =>Promise<Refusal|StellarRef>;status: (ref,reader,query) =>Promise<StellarStatus>;tie: (accepts,request) => ["x402", {accepts: readonlyPaymentRequirements[];request:RequestCommitment|ToolCallCommitment; }];unplaced: (option) =>Refusal|PaymentRequirements; }>
x402/exact/stellar/precondition. The payee broadcasts (broadcaster answers "payee"): the seller's settler
submits the transaction as its source; status finds it by the buyer's events and holds it to the five checks.
LCP_PRECONDITION
constLCP_PRECONDITION:"lcp-precondition"="lcp-precondition"
The profile's assetTransferMethod, which tells this form's option from every other Stellar option.
References
Broadcaster
Re-exports Broadcaster
X402Read
Re-exports X402Read
Last updated on
@integraledger/lcp/x402-exact-solana
The `x402/exact/solana` pairing: the ATR hash placed as the option's `extra.memo` in LCP string form, written by the payer as the transaction's one Memo instruction, read back from the signed message, and read from the settlement.
@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`.