Skip to content
Integra Protocol
API

@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

PropertyType
acceptedPaymentRequirements
currentLedgernumber
payerstring
requiredPaymentRequired
simulatedXdrstring

Variables

exactStellarPrecondition

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

const LCP_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

On this page