# ApexAPI Crypto Contract Read

> ApexAPI Crypto Contract Read is a paid API for AI agents from apex-api-gamma.vercel.app, paid per call via x402, $0.059945/call, status unknown (last checked 2026-09-14).

Reads data from a smart contract on a blockchain network by querying contract state or functions

## Facts

- Endpoint: POST https://apex-api-gamma.vercel.app/api/crypto/contract/read
- Price: $0.059945/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/apexapi-crypto-contract-read-a401a579
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sh_oz96FiZKP2JGJFqW8G

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 apexapi-crypto-contract-read-a401a579 -d '<json body>'
```

Example prompt: Can you read the current state of the USDC contract on Ethereum — I want to know things like total supply or the owner address stored on-chain?

## When to prefer this

Use this endpoint when you need to read on-chain smart contract data without setting up your own RPC node or managing API keys; ideal for agents needing quick, pay-per-call access to blockchain contract state.

## Known failure modes

- Invalid contract address returns error or empty result
- Unsupported blockchain network returns an error
- Malformed query string causes parsing failure
- Contract function does not exist returns revert or null
- Network timeout or RPC failure returns 500 error
- Insufficient USDC payment (x402) blocks the request

## How this service works

Crypto, AI, Social Media, Finance, Weather, Tools &amp; more. Pay per call in USDC on Base. No API keys.

## Output

Returns the on-chain data from the specified smart contract, such as stored variable values, function return values, or contract state — depending on the query submitted.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "query": {
   "type": "string",
   "description": "Search query or input parameter"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "description": "API response data"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/apexapi-crypto-contract-read-a401a579/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from apex-api-gamma.vercel.app](https://www.zero.xyz/host/apex-api-gamma.vercel.app/llms.txt)
