Api Endpoint

wallet-can-pay

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
GET
Offering type
Api Endpoint
Transport type
http
Category
Blockchain And Crypto
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://x402.agentindex.world/can-pay
MIME type
Not provided
First seen
2026-10-16T01:50:38.788Z
Last seen
Tags
Wallet, USDC, can pay, preflight

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
Healthy
Latest latency
390 ms
Average latency
565 ms
HTTP status
402
Last checked
Reachability
100% over 23 checks

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

Input schema

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

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "method": {
          "enum": [
            "GET",
            "HEAD",
            "DELETE"
          ],
          "type": "string"
        },
        "queryParams": {
          "properties": {
            "address": {
              "description": "EVM wallet address (0x…) to check on Base mainnet.",
              "type": "string"
            },
            "amount": {
              "description": "USDC amount the agent plans to spend (default 0.001).",
              "type": "number"
            }
          },
          "required": [
            "address"
          ],
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "properties": {
            "address": {
              "type": "string"
            },
            "amount_requested": {
              "type": "number"
            },
            "can_pay": {
              "type": "boolean"
            },
            "eth": {
              "type": "object"
            },
            "network": {
              "type": "string"
            },
            "shortfall_usdc": {
              "type": "number"
            },
            "usdc": {
              "type": "object"
            },
            "x402_receipt": {
              "type": "object"
            }
          },
          "required": [
            "address",
            "usdc",
            "can_pay"
          ],
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}