Skip to content
Integra Protocol
API

@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.

For AI agents: this page as Markdown, and llms.txt, the index of every page.

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.

The channel escrows the signed maximum. The hash is read back from that transaction, and settlement is read from the opening.

Interfaces

UptoSvmChoice

Properties

PropertyType
acceptedPaymentRequirements
computeUnitLimit?number
computeUnitPrice?bigint
noncebigint
nownumber
openSlotbigint
payerstring
recentBlockhashstring
requiredPaymentRequired
tokenProgramstring

UptoSvmPayload

Properties

PropertyTypeDescription
authorizedSignerstring-
channelIdstring-
depositstring-
expiresAtnumber-
fromstring-
maxAmountstring-
noncestring-
openSlotnumber-
openTransactionstringBase64 of the partially signed open transaction.
validAfternumber-

Variables

uptoSvm

const uptoSvm: 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 | SvmUnsigned<UptoSvmPaymentPayload>>; claims: true; data: PairingData; id: "x402/upto/solana"; pattern: LcpPattern; read: (doc) => Refusal | X402Read; recover: (input, reader) => Promise<Refusal | `0x${string}`>; reference: (presented, option) => Promise<Refusal | SvmRef>; status: (ref, reader, query) => Promise<SvmStatus>; tie: (accepts, request) => ["x402", { accepts: readonly PaymentRequirements[]; request: RequestCommitment | ToolCallCommitment; }]; unplaced: (option) => Refusal | PaymentRequirements; }>

x402/upto/solana. The payee broadcasts (broadcaster answers "payee"): the seller's facilitator, the option's feePayer, co-signs and sends the opening the payer signed, and settles the metered amount in a later transaction; status reads the opening.

References

Broadcaster

Re-exports Broadcaster


UptoSvmPaymentPayload

Re-exports UptoSvmPaymentPayload


X402Read

Re-exports X402Read

Last updated on

On this page