Skip to content
Integra Protocol
API

@integraledger/lcp/x402-exact-solana

The exports of @integraledger/lcp/x402-exact-solana.

Interfaces

SvmChoice

Properties

PropertyType
acceptedPaymentRequirements
computeUnitLimit?number
computeUnitPrice?bigint
decimalsnumber
payerstring
recentBlockhashstring
requiredPaymentRequired
tokenProgramstring

SvmPaymentPayload

A payment on this pairing: the base64 partially signed versioned transaction.

Properties

PropertyType
acceptedPaymentRequirements
extensions?object
payloadobject
payload.transactionstring
resource?object
resource.urlstring
x402Version2

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

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<`0x${string}` | Refusal>; build: (c, h) => Promise<Refusal | SvmUnsigned<SvmPaymentPayload>>; carrier: "extra.memo"; claims: boolean; id: "x402/exact/solana"; pattern: LcpPattern; read: (doc) => Refusal | X402Read; recover: (ref, reader) => Promise<`0x${string}` | Refusal>; reference: (presented) => Promise<Refusal | Omit<SvmRef, "fromSlot">>; status: (ref, reader) => Promise<SvmStatus>; tie: (accepts, request) => ["x402", { accepts: readonly PaymentRequirements[]; request: RequestCommitment; }]; unplaced: (option) => PaymentRequirements; }>

Functions

pairingOf()

pairingOf(option): "x402/exact/solana" | undefined

This pairing's id for an option it can pay, or undefined.

Parameters

ParameterType
optionPaymentRequirements

Returns

"x402/exact/solana" | undefined

Last updated on

On this page