mpp-test-cli
v1.0.0
Published
CLI tool for instant HTTP 402 endpoint testing on Solana
Downloads
24
Maintainers
Readme
mpp-test
Instant HTTP 402 endpoint testing on Solana — no setup, no wallet, no config.
Usage
npx mpp-test-cli <url> [options]Options
| Flag | Default | Description |
|------|---------|-------------|
| --network <n> | devnet | devnet | testnet | mainnet |
| --timeout <ms> | 30000 | Full-flow timeout in milliseconds |
| --key <path> | — | Path to Solana keypair JSON (required for mainnet) |
| --rpc <url> | — | Custom RPC endpoint |
| --json | — | Pretty-print the full response body |
| -h, --help | — | Show help |
Examples
# Test a devnet endpoint (airdrop handled automatically)
npx mpp-test-cli https://api.example.com/data
# Test on testnet
npx mpp-test-cli https://api.example.com/data --network testnet
# Test on mainnet with your own wallet
npx mpp-test-cli https://api.example.com/data --network mainnet --key ~/.config/solana/id.json
# Pretty-print JSON response
npx mpp-test-cli https://api.example.com/data --jsonWhat it does
- Creates a temporary Solana wallet
- Airdrops SOL on devnet/testnet (with exponential back-off)
- Hits your endpoint — if it returns 402, pays automatically
- Prints the final response status, timing, and body
Links
- mpptestkit.com — live playground
- npm: mpp-test-sdk — TypeScript SDK
- GitHub — organisation
License
MIT
