Catalog/chain-contract-abi

Chain

Verified contract ABI lookup API

Fetch a smart contract's verified ABI (and its function/event names) from Sourcify. Answers queries like 'get the ABI for this contract', 'what functions does this contract have', 'is this contract verified'.

Price$0.01per request
MethodPOST
Route/v1/chain/contract-abi
StatusLive
MIME typeapplication/json
Rate limit60/minute
Cache86400s public
chainabicontractsourcifyverifiedinterfaceethereum
API URLhttps://x402.hexl.dev/v1/chain/contract-abi
Integration docs
Example request
{
  "address": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
  "chain": "ethereum"
}
Example response
{
  "address": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
  "chain": "ethereum",
  "verified": true,
  "matchType": "full",
  "functions": [
    "transfer",
    "approve",
    "balanceOf"
  ],
  "events": [
    "Transfer",
    "Approval"
  ],
  "abi": [
    {
      "type": "function",
      "name": "transfer"
    }
  ]
}
Input schema
{
  "type": "object",
  "required": [
    "address"
  ],
  "properties": {
    "address": {
      "type": "string",
      "pattern": "^0x[0-9a-fA-F]{40}$"
    },
    "chain": {
      "type": "string",
      "enum": [
        "base",
        "ethereum"
      ],
      "default": "base"
    }
  }
}
Output schema
{
  "type": "object",
  "required": [
    "address",
    "chain",
    "verified",
    "abi"
  ],
  "properties": {
    "address": {
      "type": "string"
    },
    "chain": {
      "type": "string"
    },
    "verified": {
      "type": "boolean"
    },
    "matchType": {
      "type": [
        "string",
        "null"
      ]
    },
    "functions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "events": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "abi": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    }
  }
}