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()?
Defined in: packages/payment-solana/src/exact/client.ts:38optionalbuildTransaction: (instructions,recentBlockHash) =>Promise<VersionedTransaction>
Parameters
instructions
TransactionInstruction[]
recentBlockHash
string
Returns
Promise<VersionedTransaction>
network
network:Defined in: packages/payment-solana/src/exact/client.ts:36string|SolanaCAIP2Network
partiallySignTransaction()?
Defined in: packages/payment-solana/src/exact/client.ts:42optionalpartiallySignTransaction: (tx) =>Promise<VersionedTransaction>
Parameters
tx
VersionedTransaction
Returns
Promise<VersionedTransaction>
publicKey
publicKey: PublicKey
Defined in: packages/payment-solana/src/exact/client.ts:37
sendTransaction()?
Defined in: packages/payment-solana/src/exact/client.ts:48optionalsendTransaction: (tx) =>Promise<string>
Parameters
tx
VersionedTransaction
Returns
Promise<string>
updateTransaction()?
Defined in: packages/payment-solana/src/exact/client.ts:45optionalupdateTransaction: (tx) =>Promise<VersionedTransaction>
Parameters
tx
VersionedTransaction
Returns
Promise<VersionedTransaction>
Functions
createFacilitatorHandler()
createFacilitatorHandler(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.network,rpc,feePayerKeypair,mint,config?):Promise<FacilitatorHandler>
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(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.wallet,mint,connection?,options?):PaymentHandler
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