What is the Perftest API?
Performance Tester is deployed at:
/free- Returns immediately without requiring payment (useful for connectivity tests)/protected- Requires x402 payment before returning a response (useful for testing payment flows)
Pricing
/free- Free, no payment required/protected- 0.002 USDC per request (paid via x402 protocol)
When to Use This
Use the Perftest API when you need to:- Validate your wallet and payment handler configuration before production
- Debug payment flow issues in a controlled environment
- Test x402 payment integration in a simple, predictable environment
- Verify your payment setup works correctly before connecting to partner APIs
Quick Start: Testing Connectivity with /free
Before testing payments, verify basic connectivity:Prerequisites
Install the required packages:.env file with your wallet private key:
Full Example
Test your payment setup with the/protected endpoint:
@faremeter/rides handles the rest:
- Automatic network detection
- Token selection
- Payment processing
- Transaction submission
Related Resources
- @faremeter/rides - Learn more about the simple payment library
- Payment Flow - How x402 payments work under the hood
- Helius Examples - Testing with a real partner API