# InsumerAPI – On-Chain Wallet Condition Attestation

> InsumerAPI – On-Chain Wallet Condition Attestation is a paid API for AI agents from api.insumermodel.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-14).

Returns a signed ECDSA attestation (verifiable boolean) confirming whether an EVM wallet satisfies up to 10 on-chain conditions across 38 chains, covering token balance, NFT ownership, EAS, Farcaster, view calls, ratio rules, and agent standing (ERC-8004/ERC-7710).

## Facts

- Endpoint: POST https://api.insumermodel.com/v1/attest
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/insumerapi-on-chain-wallet-condition-attestation-779dede9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0Yl5wq3N2xzNKYM_BqdhV

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 insumerapi-on-chain-wallet-condition-attestation-779dede9 -d '<json body>'
```

Example prompt: Check whether wallet 0xAbC123… holds at least 100 USDC on Ethereum mainnet (chain 1) and owns at least one NFT from contract 0xDef456… on Base (chain 8453), and give me a signed ECDSA attestation of the result.

## When to prefer this

Choose this endpoint when you need a cryptographically signed, verifiable boolean attesting wallet conditions rather than raw data — particularly for on-chain gating, agent credential verification, or trustless proof handoffs. Prefer it over raw RPC calls when you need a tamper-evident attestation artifact. It is ideal for multi-condition checks across multiple chains in a single request, and uniquely supports ERC-8004 agent registration and ERC-7710 delegation validity checks that generic balance APIs do not cover.

## Known failure modes

- Invalid or malformed wallet address returns a 400-level error
- Unsupported chain ID causes condition evaluation failure
- Contract address not found or not deployed on specified chain
- Threshold value malformed (non-decimal or wrong base units)
- More than 10 conditions submitted — request rejected
- Payment not received or insufficient USDC triggers 402 Payment Required
- ERC-7710 delegation revocation proof unavailable on-chain
- EAS attestation schema or UID not resolvable
- Merkle proof request on a chain without storage proof support doubles price and may time out

## How this service works

Signed attestation (ECDSA plus a post-quantum ML-DSA-65 companion) of on-chain wallet conditions across 38 chains: token balance, NFT ownership, EAS, Farcaster, view calls, ratio rules, and agent standing (ERC-8004 registration, ERC-7710 delegation validity with revocation proof). A verifiable boolean, never raw balances. Up to 10 conditions per pay-per-call request. Pay in USDC on Base, Polygon, Arbitrum, or Solana.

## Output

A signed ECDSA attestation containing a verifiable boolean for each submitted condition, indicating pass or fail — never raw balances or token amounts. Optionally formatted as an ES256 JWT and/or accompanied by an EIP-1186 Merkle storage proof. The attestation is cryptographically verifiable on-chain or off-chain.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "proof": {
   "enum": [
    "merkle"
   ],
   "type": "string",
   "description": "Optional EIP-1186 storage proof; doubles the price"
  },
  "format": {
   "enum": [
    "jwt"
   ],
   "type": "string",
   "description": "Optional ES256 JWT attestation format"
  },
  "wallet": {
   "type": "string",
   "description": "EVM address (0x…); non-EVM wallets via solanaWallet/xrplWallet/bitcoinWallet/tronWallet/stellarWallet/suiWallet"
  },
  "conditions": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "type",
     "chainId"
    ],
    "properties": {
     "type": {
      "enum": [
       "token_balance",
       "nft_ownership",
       "eas_attestation",
       "farcaster_id",
       "evm_view_call",
       "ratio_to_amount",
       "ratio_to_supply",
       "erc8004_agent",
       "erc7710_delegation"
      ],
      "type": "string"
     },
     "chainId": {
      "description": "Numeric EVM chain id, or 'solana' | 'xrpl' | 'bitcoin' | 'tron' | 'stellar' | 'sui'"
     },
     "threshold": {
      "type": "string",
      "description": "Decimal string in token/display units, not base units: \"1000\" means 1000 USDC"
     },
     "contractAddress": {
      "type": "string"
     }
    }
   },
   "maxItems": 10,
   "minItems": 1
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "kid": "insumer-attest-v2",
   "sig": "…",
   "attestation": {
    "id": "ATST-…",
    "pass": true,
    "results": [
     {
      "met": true,
      "blockNumber": "0x…",
      "conditionHash": "0x…"
     }
    ]
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/insumerapi-on-chain-wallet-condition-attestation-779dede9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.insumermodel.com](https://www.zero.xyz/host/api.insumermodel.com/llms.txt)
