@integraledger/lcp/x402-upto-solana
The exports of @integraledger/lcp/x402-upto-solana.
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
UptoSvmPaymentPayload
Properties
| Property | Type |
|---|---|
accepted | PaymentRequirements |
extensions? | object |
payload | UptoSvmPayload |
resource? | object |
resource.url | string |
x402Version | 2 |
Variables
uptoSvm
constuptoSvm: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: readonlyPaymentRequirements[];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
| Parameter | Type |
|---|---|
option | PaymentRequirements |
Returns
"x402/upto/solana" | undefined
Last updated on