# EVM Smart Contract View Function Caller

> EVM Smart Contract View Function Caller is a paid API for AI agents from api.agent-data.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-14).

Calls any read-only (view) function on a smart contract across 7 EVM chains by ABI signature, returning decoded results

## Facts

- Endpoint: GET https://api.agent-data.workers.dev/api/v1/evm/call?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/evm-smart-contract-view-function-caller-6f36f6ae
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qqP7ZhnctweeAHN3xU32M

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability evm-smart-contract-view-function-caller-6f36f6ae
```

Example prompt: What is the total supply of the USDC contract at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum? Use the totalSupply() function signature.

## When to prefer this

Choose this endpoint when you need to read on-chain state from a smart contract on Base, Ethereum, Arbitrum, BSC, Polygon, Optimism, or Avalanche without running your own RPC node. It is ideal for agents that need decoded, human-readable output rather than raw hex, and when you know the function signature but don't want to manage ABI files. At $0.001 per call it is cost-effective for single or repeated contract reads in agentic workflows.

## Known failure modes

- Invalid or non-checksummed contract address returns an error
- Incorrect ABI signature causes decoding failure or revert
- Calling a non-view/state-changing function may revert or return unexpected data
- Unsupported chain identifier returns a validation error
- Wrong `returns` type causes decoding mismatch
- Contract at the given address does not exist on the specified chain
- Block number out of range or too old may be unsupported

## How this service works

Read any smart contract view function (eth_call) on Base, Ethereum, Arbitrum, BSC, Polygon, Optimism or Avalanche by signature, with decoded results. $0.001.

## Output

A JSON object containing the chain name, decoded return value(s) as a typed array, the human-readable function name, the 4-byte selector hash, and the raw hex result from the node — ready for direct use by an agent without further parsing

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "to",
      "sig"
     ],
     "properties": {
      "to": {
       "type": "string"
      },
      "sig": {
       "type": "string"
      },
      "args": {
       "type": "string"
      },
      "block": {
       "type": "string"
      },
      "chain": {
       "type": "string"
      },
      "returns": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": "base",
  "decoded": [
   4123456789012345
  ],
  "function": "totalSupply()",
  "selector": "0x18160ddd",
  "result_hex": "0x..."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/evm-smart-contract-view-function-caller-6f36f6ae/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agent-data.workers.dev](https://www.zero.xyz/host/api.agent-data.workers.dev/llms.txt)
