Api Endpoint

AgentIndex x402

Check whether a Base wallet holds enough USDC to pay an x402 amount (default $0.001). Returns balance, can_pay, shortfall. The checklist agents run before spending. Try GET /can-pay/sample.

Open interactive test console

Offering

Provider
x402.agentindex.world
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Web Search Research
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://x402.agentindex.world/can-pay
MIME type
application/json
First seen
2026-10-16T03:09:13.682Z
Last seen
Tags
Wallet, USDC, can pay, preflight, MCP, X402

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.001 USDC
Atomic price: 1000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "1000",
    "payTo": "0xb3F32bdfe8D07825BC0D7387295aB1D7559BA69d"
  }
]

Observed health

Status
Reachable
Latest latency
315 ms
Average latency
949 ms
HTTP status
405
Last checked
Reachability
100% over 13 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET",
        "HEAD",
        "DELETE"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "address": {
          "type": "string",
          "description": "EVM wallet address (0x…) to check on Base mainnet."
        },
        "amount": {
          "type": "number",
          "description": "USDC amount the agent plans to spend (default 0.001)."
        }
      },
      "required": [
        "address"
      ]
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "example": {
      "type": "object",
      "properties": {
        "address": {
          "type": "string"
        },
        "network": {
          "type": "string"
        },
        "usdc": {
          "type": "object"
        },
        "eth": {
          "type": "object"
        },
        "amount_requested": {
          "type": "number"
        },
        "can_pay": {
          "type": "boolean"
        },
        "shortfall_usdc": {
          "type": "number"
        },
        "x402_receipt": {
          "type": "object"
        }
      },
      "required": [
        "address",
        "usdc",
        "can_pay"
      ]
    }
  },
  "required": [
    "type"
  ]
}