@integraledger/lcp/x402-exact-solana
The exports of @integraledger/lcp/x402-exact-solana.
Interfaces
SvmChoice
Properties
| Property | Type |
|---|---|
accepted | PaymentRequirements |
computeUnitLimit? | number |
computeUnitPrice? | bigint |
decimals | number |
payer | string |
recentBlockhash | string |
required | PaymentRequired |
tokenProgram | string |
SvmPaymentPayload
A payment on this pairing: the base64 partially signed versioned transaction.
Properties
| Property | Type |
|---|---|
accepted | PaymentRequirements |
extensions? | object |
payload | object |
payload.transaction | string |
resource? | object |
resource.url | string |
x402Version | 2 |
SvmUnsigned
What the payer signs, and how its signature completes the payment.
Type Parameters
| Type Parameter | Default type |
|---|---|
P | SvmPaymentPayload |
Properties
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<`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: readonlyPaymentRequirements[];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
| Parameter | Type |
|---|---|
option | PaymentRequirements |
Returns
"x402/exact/solana" | undefined
Last updated on