Faremeter API / payment-solana/src / exact
exact
Functions
createFacilitatorHandler()
createFacilitatorHandler(Defined in: packages/payment-solana/src/exact/facilitator.ts:201 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
string
Solana network identifier (cluster name or CAIP-2 format)
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:152 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