# x402 Solana Mainnet Wallet Preflight Linter

> x402 Solana Mainnet Wallet Preflight Linter is a paid API for AI agents from home.chrz.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Validates an x402 payment configuration object for Solana mainnet before an agent attempts a paid request, returning errors and warnings about missing or malformed fields.

## Facts

- Endpoint: POST https://home.chrz.dev/agent-dust/v1/agent/x402-lint
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-solana-mainnet-wallet-preflight-linter-132b783c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__FLCNb04kS1ummHNARyQo

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402-solana-mainnet-wallet-preflight-linter-132b783c -d '<json body>'
```

Example prompt: Check my x402 payment config for errors before I use it — the accepts array has payTo set to my Solana mainnet wallet and the resource mimeType is 'application/json', and I want to make sure everything is valid before my agent tries to pay.

## When to prefer this

Use this endpoint when you need to validate an x402 payment configuration object before submitting a paid request on Solana mainnet — particularly useful during agent development, CI/CD pipelines, or when debugging why x402 payments are being rejected. Prefer this over trial-and-error live calls since it costs only $0.005 USDC and returns actionable error messages without triggering actual payment flows.

## Known failure modes

- Malformed request body returns validation errors in the errors array with ok=false
- Missing required fields in accepts array surfaced as specific error strings
- Non-fatal issues like missing mimeType returned as warnings rather than errors
- Network connectivity issues may return HTTP-level errors
- Invalid JSON input may cause a 400-level response

## How this service works

x402-paid Solana mainnet wallet preflight oracle for agents.

## Output

A JSON object with an 'ok' boolean, an 'errors' array listing validation failures (e.g. missing payTo, malformed accepts), a 'warnings' array for non-blocking issues (e.g. missing mimeType), and a 'summary' object containing detected assets, networks, and minimum USDC amount.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "payment_required"
     ],
     "properties": {
      "payment_required": {
       "type": "string",
       "description": "Base64 payment-required header or raw JSON string"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "ok",
      "errors",
      "warnings"
     ],
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "errors": {
       "type": "array"
      },
      "summary": {
       "type": "object"
      },
      "warnings": {
       "type": "array"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": false,
  "errors": [
   "accepts[0].payTo is missing"
  ],
  "summary": {
   "assets": [],
   "networks": [],
   "min_amount_usdc": null
  },
  "warnings": [
   "resource.mimeType is missing"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-solana-mainnet-wallet-preflight-linter-132b783c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from home.chrz.dev](https://www.zero.xyz/host/home.chrz.dev/llms.txt)
