Skip to content
Integra Protocol
API

@integraledger/lcp/x402-upto-solana

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

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-

UptoSvmPaymentPayload

Properties

PropertyType
acceptedPaymentRequirements
extensions?object
payloadUptoSvmPayload
resource?object
resource.urlstring
x402Version2

Variables

uptoSvm

const uptoSvm: Readonly<{ advertise: (doc, h, link, offer, agreementUrl?) => Refusal | PaymentRequired; bound: (presented) => Promise<`0x${string}` | Refusal>; build: (c, h) => Promise<Refusal | SvmUnsigned<UptoSvmPaymentPayload>>; carrier: "extra.memo"; claims: true; id: "x402/upto/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<ChannelStatus>; tie: (accepts, request) => ["x402", { accepts: readonly PaymentRequirements[]; request: RequestCommitment; }]; unplaced: (option) => PaymentRequirements; }>

Functions

pairingOf()

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

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

Parameters

ParameterType
optionPaymentRequirements

Returns

"x402/upto/solana" | undefined

Last updated on

On this page