x402 (Test)

bash
wasit test --target <url> [options]
OptionDefaultNotes
--target <url>requiredMust include the scheme
--network <id>stellar:testnetNetwork the payment checks pay on: stellar:testnet or stellar:pubnet. X402-01–05 apply to a challenge on any chain
--payer-key <key>STELLAR_PRIVATE_KEYSecret key, S...
--rpc-url <url>testnet defaultSoroban RPC used to verify X402-06's settlement; required for pubnet
--method <verb>GETHTTP 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-onlyoffRestricts the run to X402-01–05
--jsonoffMachine-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.