Fix plan for an x402 endpoint ($0.05 via x402)
x402_fixRead-only
Paid ($0.05 USDC via x402 on Base or Solana): diagnoses your x402 endpoint, then returns per problem the concrete change as code for your stack (express, next, hono, node, python, generic), filled in with your own payTo, amount, network and route. For the endpoint's owner: includes the diagnosis, so there is no need to call x402_diagnose first. Same as GET /api/v1/fix. The answer carries a signed receipt (EIP-191, bound to your arguments) that proves later which verdict you got.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The x402 endpoint (public http(s) URL), e.g. https://api.example.com/paid | |
| stack | No | Your server stack (default: detected) | |
| method | No | HTTP method of the paid route (default: GET, then POST) |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| fixes | No | Each problem with steps and code for your stack | |
| accepts | No | Only on an unpaid call: the x402 payment options | |
| overall | No | pass, warn or fail | |
| receipt | No | Signed receipt (EIP-191) binding the answer to your arguments | |
| summary | No | ||
| unfixed | No |