# Base ERC-4626 Vault Inspector

> Base ERC-4626 Vault Inspector is a paid API for AI agents from x402-data-api.bodhinindustries.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Fetches live onchain data for a Base ERC-4626 vault contract, returning TVL, share price, flags, and metadata computed directly from chain without third-party data sources.

## Facts

- Endpoint: GET https://x402-data-api.bodhinindustries.workers.dev/vault
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-erc-4626-vault-inspector-7ecd960b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2btMdMb21YlM6t3MMq7NL

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 base-erc-4626-vault-inspector-7ecd960b
```

Example prompt: Pull the live onchain stats for the Base ERC-4626 vault at 0x1234...abcd — I want to see its TVL, price per share, underlying asset, and any risk flags, all computed directly from chain.

## When to prefer this

Use this endpoint when you need trustless, self-computed onchain data for a Base ERC-4626 vault without relying on any third-party oracle or data aggregator. Prefer it when auditing vault safety, checking TVL, or verifying share price for DeFi agents that require raw chain truth rather than cached or aggregated data.

## Known failure modes

- Invalid or non-ERC-4626 contract address returns an error or null fields
- Contract not deployed on Base returns an error
- Vault with zero supply returns isEmpty=true and null pricePerShare
- RPC timeout or Base node unavailability causes request failure
- Malformed address (wrong checksum or length) returns a validation error

## How this service works

Self-computed Base onchain toolkit for AI agents: ERC-20 safety scan, manipulation-resistant TWAP price oracle, gas/fee oracle, calldata decoder, token/address/contract intel, wallet approval-risk audit, and batch token triage — all computed live from raw Base chain, no third-party data.

## Output

Returns a JSON object with the vault's name, symbol, underlying asset address and symbol, total assets (TVL in human-readable units), total supply of shares, price per share, share decimals, whether the vault is empty, the Base block height at computation time, an ISO-8601 timestamp, any risk/warning flags, and a confirmation that no third-party data was used.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "vault"
 ],
 "properties": {
  "vault": {
   "type": "string",
   "description": "Base ERC-4626 vault contract address."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "name": {
   "type": "string",
   "description": "vault token name (or null)"
  },
  "asset": {
   "type": "string",
   "description": "underlying asset address"
  },
  "block": {
   "type": "integer",
   "description": "Base block height"
  },
  "flags": {
   "type": "array",
   "items": {
    "type": "string"
   }
  },
  "vault": {
   "type": "string",
   "description": "vault address"
  },
  "symbol": {
   "type": "string",
   "description": "vault share symbol (or null)"
  },
  "isEmpty": {
   "type": "boolean",
   "description": "totalSupply == 0"
  },
  "decimals": {
   "type": "integer",
   "description": "share decimals"
  },
  "computedAt": {
   "type": "string",
   "description": "ISO-8601 timestamp"
  },
  "assetSymbol": {
   "type": "string",
   "description": "underlying symbol (or null)"
  },
  "totalAssets": {
   "type": "string",
   "description": "TVL in underlying units (human)"
  },
  "totalSupply": {
   "type": "string",
   "description": "total shares (human)"
  },
  "pricePerShare": {
   "type": "string",
   "description": "assets per one share (or null)"
  },
  "thirdPartyDataUsed": {
   "type": "boolean",
   "description": "always false"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-erc-4626-vault-inspector-7ecd960b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-data-api.bodhinindustries.workers.dev](https://www.zero.xyz/host/x402-data-api.bodhinindustries.workers.dev/llms.txt)
