@x402sentinel/test
v0.1.2
Published
Test any x402 payment endpoint
Maintainers
Readme
sentinel-test
Test any x402 payment endpoint from your terminal. Like Postman for x402.
Quick Start
npx sentinel-test https://api.example.com/endpointWhat It Tests
- Reachability — endpoint responds with HTTP 402
- Payment Schema — valid amount, currency, network, receiver address
- Facilitator — facilitator URL is reachable (if provided)
- Response Quality — response time, CORS headers, HTTPS
- Sentinel Integration — checks for Sentinel audit trail headers
Options
| Flag | Description |
|------|-------------|
| --network <name> | Expected network (base, solana, etc) |
| --verbose | Show full response details |
| --json | Output results as JSON |
| --timeout <ms> | Request timeout (default: 10000) |
Score
Each endpoint gets a score from 0-10:
- Failed critical checks: -3 each
- Failed warning checks: -1 each
- Exit code 0 if score >= 5, exit code 1 otherwise
