# PrimeAPI Crypto Smart Contract Read

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

Reads data from a deployed smart contract on a blockchain network by executing a read/call function

## Facts

- Endpoint: POST https://prime-api-seven.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/primeapi-crypto-smart-contract-read-cf419735
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dLQ-xpeutmhigtAMYe-GF

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 primeapi-crypto-smart-contract-read-cf419735 -d '<json body>'
```

Example prompt: Read the totalSupply function from the USDC smart contract at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum mainnet and tell me the current circulating supply.

## When to prefer this

Use this endpoint when you need to read on-chain state from a deployed smart contract without needing a Web3 node or RPC key, and want to pay per call in USDC with no API key management. Ideal for AI agents that need to query DeFi protocols, token contracts, or NFT metadata on-chain.

## Known failure modes

- Invalid contract address returns an error or empty response
- Unsupported blockchain network returns a network error
- Incorrect function name or ABI mismatch causes call failure
- Node RPC timeout causes a slow or failed response
- Payment failure in USDC results in HTTP 402 before the call is made

## 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 output of a smart contract read/view function — typically a value such as a token balance, address, boolean flag, integer, or structured data depending on the contract ABI and function called.

## 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/primeapi-crypto-smart-contract-read-cf419735/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from prime-api-seven.vercel.app](https://www.zero.xyz/host/prime-api-seven.vercel.app/llms.txt)
