@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.
For AI agents: this page as Markdown, and llms.txt, the index of every page.
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.
Interfaces
SvmChoice
Properties
| Property | Type | Description |
|---|---|---|
accepted | PaymentRequirements | - |
computeUnitLimit? | number | - |
computeUnitPrice? | bigint | - |
decimals | number | - |
payer | string | - |
reader? | Pick<SvmReader, "network" | "account"> | A reader of the option's network, through whose account build reads a Token-2022 mint at confirmed and, where its TransferHook extension names a program, the accounts the transfer hook needs (the profile's rule 9). Absent, build reads nothing and writes TransferChecked with its four accounts, which a mint whose hook names a program does not take. |
recentBlockhash | string | - |
required | PaymentRequired | - |
tokenProgram | string | - |
SvmUnsigned
What the payer signs, and how its signature completes the payment.
Type Parameters
| Type Parameter | Default type |
|---|---|
P | SvmPaymentPayload |
Properties
| Property | Type |
|---|---|
request | object |
request.kind | "solana-message" |
request.message | Uint8Array<ArrayBuffer> |
Methods
complete()
complete(
signature):Refusal|P
A 64-byte Ed25519 signature by the payer.
Parameters
| Parameter | Type |
|---|---|
signature | Uint8Array |
Returns
Refusal | P
Variables
exactSvm
constexactSvm: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<SvmPaymentPayload>>;claims:boolean;data:PairingData;id:"x402/exact/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/exact/solana. The payee broadcasts (broadcaster answers "payee"): the seller's facilitator, the option's
feePayer, co-signs and sends the transaction the payer signed; status reads it.
References
Broadcaster
Re-exports Broadcaster
SvmPaymentPayload
Re-exports SvmPaymentPayload
X402Read
Re-exports X402Read
Last updated on
@integraledger/lcp/x402-batch-settlement
x402 `batch-settlement`: one ATR per channel, its hash the EVM channel configuration's `salt`, the Solana opening transaction's seller Memo instruction, or, on Cloudflare, the echoed `extensions.legalContext` of each request.
@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.