Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.faremeter.xyz/llms.txt

Use this file to discover all available pages before exploring further.

exact

Type Aliases

Wallet

Wallet = object
Defined in: packages/payment-solana/src/exact/client.ts:35

Properties

buildTransaction()?
optional buildTransaction: (instructions, recentBlockHash) => Promise<VersionedTransaction>
Defined in: packages/payment-solana/src/exact/client.ts:38
Parameters
instructions
TransactionInstruction[]
recentBlockHash
string
Returns
Promise<VersionedTransaction>
network
network: string | SolanaCAIP2Network
Defined in: packages/payment-solana/src/exact/client.ts:36
partiallySignTransaction()?
optional partiallySignTransaction: (tx) => Promise<VersionedTransaction>
Defined in: packages/payment-solana/src/exact/client.ts:42
Parameters
tx
VersionedTransaction
Returns
Promise<VersionedTransaction>
publicKey
publicKey: PublicKey
Defined in: packages/payment-solana/src/exact/client.ts:37
sendTransaction()?
optional sendTransaction: (tx) => Promise<string>
Defined in: packages/payment-solana/src/exact/client.ts:48
Parameters
tx
VersionedTransaction
Returns
Promise<string>
updateTransaction()?
optional updateTransaction: (tx) => Promise<VersionedTransaction>
Defined in: packages/payment-solana/src/exact/client.ts:45
Parameters
tx
VersionedTransaction
Returns
Promise<VersionedTransaction>

Functions

createFacilitatorHandler()

createFacilitatorHandler(network, rpc, feePayerKeypair, mint, config?): Promise<FacilitatorHandler>
Defined in: packages/payment-solana/src/exact/facilitator.ts:203 Creates a facilitator handler for the Solana exact payment scheme. The handler validates incoming payment transactions, signs them with the fee payer keypair, and submits them to the Solana network.

Parameters

network
Solana network identifier (cluster name, CAIP-2 string, or SolanaCAIP2Network object) string | SolanaCAIP2Network
rpc
Rpc<SolanaRpcApiForTestClusters> Solana RPC client
feePayerKeypair
Keypair Keypair for paying transaction fees
mint
PublicKey SPL token mint public key
config?
FacilitatorOptions Optional configuration for retries, fees, and hooks

Returns

Promise<FacilitatorHandler> A FacilitatorHandler for processing Solana exact payments

createPaymentHandler()

createPaymentHandler(wallet, mint, connection?, options?): PaymentHandler
Defined in: packages/payment-solana/src/exact/client.ts:164 Creates a payment handler for the Solana exact payment scheme. The handler builds SPL token transfer transactions that can be signed and submitted by the client to fulfill x402 payment requirements.

Parameters

wallet
Wallet Wallet providing signing capabilities
mint
PublicKey SPL token mint public key
connection?
Connection Optional Solana connection for fetching blockhash and mint info
options?
CreatePaymentHandlerOptions Optional configuration for token address and features

Returns

PaymentHandler A PaymentHandler function for use with the x402 client