x402 icon indicating copy to clipboard operation
x402 copied to clipboard

feat: add x402-cli tool

Open madisoncarter1234 opened this issue 1 month ago • 2 comments

Adds a CLI tool for testing x402 payment endpoints.

What it does

  • x402 info <url> - Get payment requirements without paying
  • x402 discover - Find available x402 endpoints
  • x402 test <url> - Test endpoints with payment flow
  • x402 verify <txHash> - Verify transactions

Why

Developers need a quick way to test x402 endpoints without writing code. This CLI makes it easy to check payment requirements, discover APIs, and debug payment flows.

Testing

Tested against local x402 server from examples/typescript/servers/express.

Standalone repo: https://github.com/madisoncarter1234/x402-cli

madisoncarter1234 avatar Nov 28 '25 21:11 madisoncarter1234

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

cb-heimdall avatar Nov 28 '25 21:11 cb-heimdall

@madisoncarter1234 is attempting to deploy a commit to the Coinbase Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Nov 28 '25 21:11 vercel[bot]