Pre-flight check before a swap or transfer: ERC-20 allowance, balance, decimals and symbol
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.
2000 (raw units)
price
1
calls / 30d
1
unique payers
2026-08-27
updated
Provider
api.eucompliance.tools · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x478bCdeA94b9CB5EA14C33e6f0d7E920743d39f2",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "2000",
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "eip155:42161",
"payTo": "0x478bCdeA94b9CB5EA14C33e6f0d7E920743d39f2",
"asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
"amount": "2000",
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "eip155:137",
"payTo": "0x478bCdeA94b9CB5EA14C33e6f0d7E920743d39f2",
"asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
"amount": "2000",
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"payTo": "9N5TAHbtp9s8Ksrcn4b9Kig4uTRnevZC13bSsMnMAQ4c",
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "2000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"method": "GET",
"queryParams": {
"amount": 25,
"chain": "base",
"owner": "0x0000000000000000000000000000000000000001",
"spender": "0x0000000000000000000000000000000000000002",
"token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
},
"type": "http"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET",
"HEAD",
"DELETE"
],
"type": "string"
},
"queryParams": {
"properties": {
"amount": {
"description": "amount you intend to move, optional - returns a would_succeed verdict",
"type": "number"
},
"chain": {
"enum": [
"base",
"ethereum",
"arbitrum",
"optimism",
"polygon"
],
"type": "string"
},
"owner": {
"description": "wallet holding the tokens",
"type": "string"
},
"spender": {
"description": "contract that would spend them, optional",
"type": "string"
},
"token": {
"description": "ERC-20 contract address",
"type": "string"
}
},
"required": [
"token",
"owner"
],
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://api.eucompliance.tools/x402/token" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://api.eucompliance.tools/x402/token");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://api.eucompliance.tools/x402/token")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/8884.json, and this resource appears in /discovery/resources and /discovery/search.