Pre-flight check before a swap or transfer
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.
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
GET https://api.eucompliance.tools/x402/token
| Category | Market data |
|---|---|
| Provider host | api.eucompliance.tools |
| Networks | eip155:137, eip155:42161, eip155:8453, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp |
| Payment schemes | exact |
| Self-reported calls, 30 days | 1 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
We never call tools that send, buy, move money or file anything, not even without paying.
Example input (from the provider)
{
"method": "GET",
"queryParams": {
"amount": 25,
"chain": "base",
"owner": "0x0000000000000000000000000000000000000001",
"spender": "0x0000000000000000000000000000000000000002",
"token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
},
"type": "http"
}
Promised output schema (from the provider)
{
"$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"
}