# SperaxOS ERC-8004 Agent Attestation Validation

> SperaxOS ERC-8004 Agent Attestation Validation is a paid API for AI agents from chat.sperax.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-15).

Retrieves and validates ERC-8004 attestation records for a specific on-chain agent by attestation type on a testnet blockchain

## Facts

- Endpoint: POST https://chat.sperax.io/api/x402/tools/erc8004/getValidation?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/speraxos-erc-8004-agent-attestation-validation-8e1866c9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TISHeQGmGfRmu0OPxOhyV

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 speraxos-erc-8004-agent-attestation-validation-8e1866c9 -d '<json body>'
```

Example prompt: Check the identity attestation for agent token ID 42 on bsc-testnet using ERC-8004 and tell me if it's valid.

## When to prefer this

Use this endpoint when you need to validate ERC-8004 attestation records for specific on-chain agents on supported testnets (bsc-testnet or sepolia), particularly when checking identity, capability, security, or compliance attestation types. Prefer this over general blockchain explorers when you need structured, AI-agent-friendly attestation data payable per-request without API key management.

## Known failure modes

- Invalid or non-existent agent token ID returns empty or null attestation record
- Unsupported chain name (e.g. mainnet) returns an error since only testnets are supported
- Invalid attestation type string returns no matching record
- Payment failure via x402 protocol results in 402 response and no data returned
- Network or RPC errors for the queried testnet may cause timeouts or 500 errors

## How this service works

AI-powered DeFi intelligence APIs payable via the x402 HTTP payment protocol. No API key required — pay per request with USDC on Base. Identity-only (SIWX) endpoints are free for wallets with an agentcash identity.

## Output

Returns the attestation validation result for the specified agent token ID and attestation type on the queried testnet chain, including whether the attestation exists, is valid, and any relevant metadata about the attestation record according to the ERC-8004 standard.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "type": "string",
   "default": "bsc-testnet",
   "description": "Blockchain to query (testnet only: bsc-testnet, sepolia)"
  },
  "agentId": {
   "type": "string",
   "description": "The token ID of the agent"
  },
  "attestationType": {
   "type": "string",
   "description": "The attestation type to query (e.g., identity, capability, security, compliance)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/speraxos-erc-8004-agent-attestation-validation-8e1866c9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chat.sperax.io](https://www.zero.xyz/host/chat.sperax.io/llms.txt)
