x402 (Test)
wasit test --target <url> [options]| Option | Default | Notes |
|---|---|---|
--target <url> | required | Must include the scheme |
--network <id> | stellar:testnet | Network the payment checks pay on: stellar:testnet, stellar:pubnet, eip155:84532 (Base Sepolia) or solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1 (Solana devnet). X402-01–05 apply to a challenge on any chain |
--payer-key <key> | STELLAR_PRIVATE_KEY, EVM_PRIVATE_KEY on Base Sepolia, or SVM_PRIVATE_KEY on Solana devnet | A Stellar secret (S...), an EVM private key (0x + 64 hex), or a Solana keypair (base58 of its 64 bytes) |
--rpc-url <url> | the network's default | RPC used to verify X402-06's settlement: Soroban RPC on Stellar, required for pubnet; JSON-RPC on Base Sepolia (default https://sepolia.base.org) and on Solana devnet (default https://api.devnet.solana.com) |
--method <verb> | GET | HTTP method the paid endpoint uses. Endpoints that compute something usually take POST |
--body <json> | — | Request body, sent verbatim; implies Content-Type: application/json |
--header <name:value> | — | Extra request header the endpoint needs before it will issue a challenge. Repeatable |
--read-only | off | Restricts the run to X402-01–05 |
--json | off | Machine-readable output (see below) instead of formatted text |
Without a payer key the payment checks are skipped automatically, so the default
posture costs nothing. When they do run, X402-06 settles a real payment and
X402-07 attempts one.