exact
Type Aliases
Wallet
Wallet = object
Defined in: packages/payment-solana/src/exact/client.ts:50
Properties
buildTransaction()?
Defined in: packages/payment-solana/src/exact/client.ts:53optionalbuildTransaction: (instructions,lifetimeConstraint) =>Promise<Transaction>
Parameters
instructions
readonlyInstruction[]
lifetimeConstraint
WalletLifetimeConstraint
Returns
Promise<Transaction>
network
network:Defined in: packages/payment-solana/src/exact/client.ts:51string|SolanaCAIP2Network
partiallySignTransaction()?
Defined in: packages/payment-solana/src/exact/client.ts:57optionalpartiallySignTransaction: (tx) =>Promise<Transaction>
Parameters
tx
Transaction
Returns
Promise<Transaction>
publicKey
publicKey: Address
Defined in: packages/payment-solana/src/exact/client.ts:52
sendTransaction()?
Defined in: packages/payment-solana/src/exact/client.ts:58optionalsendTransaction: (tx) =>Promise<string>
Parameters
tx
Transaction
Returns
Promise<string>
Functions
createFacilitatorHandler()
createFacilitatorHandler(Defined in: packages/payment-solana/src/exact/facilitator.ts:209 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,rpcInput,feePayerSignerInput,mintInput,config?):Promise<FacilitatorHandler>
Parameters
network
Solana network identifier (cluster name, CAIP-2 string, or SolanaCAIP2Network object)string | SolanaCAIP2Network
rpcInput
Solana RPC clientstring | Rpc<SolanaRpcApiForTestClusters>
feePayerSignerInput
Keypair or signer for paying transaction feesKeyPairSigner | { publicKey: { toBase58: string; }; secretKey: Uint8Array; }
mintInput
SPL token mint public keyAddress | { toBase58: string; }
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:216 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,mintInput,rpcInput?,options?):PaymentHandler
Parameters
wallet
Wallet
Wallet providing signing capabilities
mintInput
SPL token mint addressAddress | { toBase58: string; }
rpcInput?
Optional Solana RPC client for fetching blockhash and mint infostring | Rpc<SolanaRpcApiForTestClusters>
options?
CreatePaymentHandlerOptions
Optional configuration for token address and features
Returns
PaymentHandler
A PaymentHandler function for use with the x402 client