@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
| Property | Type |
|---|---|
accepted | PaymentRequirements |
computeUnitLimit? | number |
computeUnitPrice? | bigint |
nonce | bigint |
now | number |
openSlot | bigint |
payer | string |
recentBlockhash | string |
required | PaymentRequired |
tokenProgram | string |
UptoSvmPayload
Properties
| Property | Type | Description |
|---|---|---|
authorizedSigner | string | - |
channelId | string | - |
deposit | string | - |
expiresAt | number | - |
from | string | - |
maxAmount | string | - |
nonce | string | - |
openSlot | number | - |
openTransaction | string | Base64 of the partially signed open transaction. |
validAfter | number | - |
Variables
uptoSvm
constuptoSvm: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: readonlyPaymentRequirements[];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
@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`.
@integraledger/lcp/x402-upto-xrpl
The `x402/upto/xrpl` pairing: x402's `upto` scheme on the XRP Ledger, at coverage `none`, its payment following an agreement on the same network.