Api Endpoint

Agent Chain Data: ERC-20 Token Balance & Allowance

Pre-flight check before a swap or transfer: ERC-20 allowance, balance, decimals and symbol in one call, read live from the chain at the latest block. Pass an amount and get a straight would_succeed verdict with the blocking reason and the action needed. Base, Ethereum, Arbitrum, Optimism, Polygon. A missing approval burns the gas of a failed transaction - this call costs a fraction of that.

Open interactive test console

Offering

Provider
api.eucompliance.tools
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://api.eucompliance.tools/x402/token
MIME type
application/json
First seen
2026-10-16T01:52:13.818Z
Last seen
Tags
token-balance, erc20-balance, ERC20, allowance, Wallet, DeFi, EVM, Onchain, agent-chain-data

Payment pricing

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

Payment option 1
0.002 USDC
Atomic price: 2000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 2
0.002 USDC
Atomic price: 2000 · Network: eip155:42161 · Asset: USDC · Scheme: exact
Payment option 3
0.002 USDC
Atomic price: 2000 · Network: eip155:137 · Asset: USDC · Scheme: exact
Payment option 4
0.002 USDC
Atomic price: 2000 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "2000",
    "payTo": "0x478bCdeA94b9CB5EA14C33e6f0d7E920743d39f2"
  },
  {
    "scheme": "exact",
    "network": "eip155:42161",
    "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
    "amount": "2000",
    "payTo": "0x478bCdeA94b9CB5EA14C33e6f0d7E920743d39f2"
  },
  {
    "scheme": "exact",
    "network": "eip155:137",
    "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
    "amount": "2000",
    "payTo": "0x478bCdeA94b9CB5EA14C33e6f0d7E920743d39f2"
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "2000",
    "payTo": "9N5TAHbtp9s8Ksrcn4b9Kig4uTRnevZC13bSsMnMAQ4c"
  }
]

Observed health

Status
Healthy
Latest latency
411 ms
Average latency
1199 ms
HTTP status
402
Last checked
Reachability
100% over 14 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": {
        "chain": {
          "type": "string",
          "enum": [
            "base",
            "ethereum",
            "arbitrum",
            "optimism",
            "polygon"
          ]
        },
        "token": {
          "type": "string",
          "description": "ERC-20 contract address"
        },
        "owner": {
          "type": "string",
          "description": "wallet holding the tokens"
        },
        "spender": {
          "type": "string",
          "description": "contract that would spend them, optional"
        },
        "amount": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            }
          ],
          "description": "Exact decimal string preferred; JSON number remains accepted for backwards compatibility. Optional; returns a would_succeed verdict."
        }
      },
      "required": [
        "token",
        "owner"
      ]
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "input": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "const": "http"
        },
        "method": {
          "type": "string",
          "enum": [
            "GET",
            "HEAD",
            "DELETE"
          ]
        },
        "queryParams": {
          "type": "object",
          "properties": {
            "chain": {
              "type": "string",
              "enum": [
                "base",
                "ethereum",
                "arbitrum",
                "optimism",
                "polygon"
              ]
            },
            "token": {
              "type": "string",
              "description": "ERC-20 contract address"
            },
            "owner": {
              "type": "string",
              "description": "wallet holding the tokens"
            },
            "spender": {
              "type": "string",
              "description": "contract that would spend them, optional"
            },
            "amount": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "number"
                }
              ],
              "description": "Exact decimal string preferred; JSON number remains accepted for backwards compatibility. Optional; returns a would_succeed verdict."
            }
          },
          "required": [
            "token",
            "owner"
          ]
        }
      },
      "required": [
        "type",
        "method"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "input"
  ]
}