Skip to content
Integra Protocol
API

@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

PropertyTypeDescription
acceptedPaymentRequirements-
computeUnitLimit?number-
computeUnitPrice?bigint-
decimalsnumber-
payerstring-
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.
recentBlockhashstring-
requiredPaymentRequired-
tokenProgramstring-

SvmUnsigned

What the payer signs, and how its signature completes the payment.

Type Parameters

Type ParameterDefault type
PSvmPaymentPayload

Properties

PropertyType
requestobject
request.kind"solana-message"
request.messageUint8Array<ArrayBuffer>

Methods

complete()

complete(signature): Refusal | P

A 64-byte Ed25519 signature by the payer.

Parameters
ParameterType
signatureUint8Array
Returns

Refusal | P

Variables

exactSvm

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

On this page