{
  "x402Version": 2,
  "id": 8170,
  "slug": "8170",
  "resource": "https://blockchain-api.x402-chain-tools.workers.dev/chain/allowance",
  "description": "Get the ERC-20 allowance from an owner to a spender.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xa7e1fe3744E3b6D55237d95cE575cAFe3b8abeCD",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "1000",
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "5vX2u7mkwhxpvQYNA7SqmauJjkcfnxETQ6tKVZphzKyM",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "1000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "owner": "0x0000000000000000000000000000000000000001",
            "spender": "0x0000000000000000000000000000000000000003",
            "token": "0x0000000000000000000000000000000000000002"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "allowance": {
              "decimals": 6,
              "formatted": "0",
              "raw": "0",
              "unlimited": false
            },
            "network": "eip155:8453",
            "ok": true,
            "owner": "0x0000000000000000000000000000000000000001",
            "spender": "0x0000000000000000000000000000000000000003",
            "token": "0x0000000000000000000000000000000000000002"
          },
          "type": "json"
        }
      },
      "schema": {
        "$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"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "blockchain-api.x402-chain-tools.workers.dev",
  "lastUpdated": "2026-09-01T23:20:30.505Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-09-01T23:20:30.159Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "blockchain-api.x402-chain-tools.workers.dev",
    "manifest_name": "blockchain-api.x402-chain-tools.workers.dev",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}