ToolAssay

Get the ERC-20 allowance from an owner to a spender

Get the ERC-20 allowance from an owner to a spender.

Answeringour last check, 2026-09-24
1 of 1checks answered this week
283 msmedian answer time
$0.001listed price per call
$0.001price it asked us

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

POST https://blockchain-api.x402-chain-tools.workers.dev/chain/allowance

CategoryEverything else
Provider hostblockchain-api.x402-chain-tools.workers.dev
Networkseip155:8453, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp
Payment schemesexact
Self-reported calls, 30 days1 from 1 payers (the provider's figure, not ours)

Our checks, last 30 days

DayResultHTTPAskedTime
2026-09-24 valid payment request 402$0.001 283 ms

Example input (from the provider)

{
  "body": {
    "owner": "0x0000000000000000000000000000000000000001",
    "spender": "0x0000000000000000000000000000000000000003",
    "token": "0x0000000000000000000000000000000000000002"
  },
  "bodyType": "json",
  "method": "POST",
  "type": "http"
}

Promised output schema (from the provider)

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "body": {
          "additionalProperties": false,
          "properties": {
            "owner": {
              "description": "Token owner address.",
              "pattern": "^0x[0-9a-fA-F]{40}$",
              "type": "string"
            },
            "spender": {
              "description": "Spender address.",
              "pattern": "^0x[0-9a-fA-F]{40}$",
              "type": "string"
            },
            "token": {
              "description": "ERC-20 token contract address on Base.",
              "pattern": "^0x[0-9a-fA-F]{40}$",
              "type": "string"
            }
          },
          "required": [
            "owner",
            "token",
            "spender"
          ],
          "type": "object"
        },
        "bodyType": {
          "enum": [
            "json",
            "form-data",
            "text"
          ],
          "type": "string"
        },
        "method": {
          "enum": [
            "POST"
          ],
          "type": "string"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method",
        "bodyType",
        "body"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "additionalProperties": false,
          "properties": {
            "allowance": {
              "additionalProperties": false,
              "properties": {
                "decimals": {
                  "minimum": 0,
                  "type": "integer"
                },
                "formatted": {
                  "type": "string"
                },
                "raw": {
                  "type": "string"
                },
                "unlimited": {
                  "type": "boolean"
                }
              },
              "required": [
                "raw",
                "decimals",
                "formatted",
                "unlimited"
              ],
              "type": "object"
            },
            "network": {
              "const": "eip155:8453",
              "type": "string"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "owner": {
              "description": "Token owner address.",
              "pattern": "^0x[0-9a-fA-F]{40}$",
              "type": "string"
            },
            "spender": {
              "description": "Spender address.",
              "pattern": "^0x[0-9a-fA-F]{40}$",
              "type": "string"
            },
            "token": {
              "description": "Token contract address.",
              "pattern": "^0x[0-9a-fA-F]{40}$",
              "type": "string"
            }
          },
          "required": [
            "ok",
            "network",
            "owner",
            "token",
            "spender",
            "allowance"
          ],
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}

This page as JSON