---
eip: 8126
label: ERC-8126
title: AI Agent Verification
status: Final
type: Standards Track
category: ERC
created: 2026-01-15
requires: 155, 191, 712, 721, 3009, 8004
official: https://eips.ethereum.org/EIPS/eip-8126
source: https://github.com/ethereum/ERCs/blob/master/ERCS/erc-8126.md
canonical: https://eips.huatuo.xyz/eip-8126/
lang: en
tldr: "A mostly off-chain standard for security-checking AI agents registered under ERC-8004: providers run five verification types on the agent's metadata and return a 0–100 risk score with zero-knowledge proof IDs."
tags: [agents, ai, verification, security, risk-score]
---

# ERC-8126: AI Agent Verification

> Specialized multi-layer verification for AI Agent security

**TL;DR:** A mostly off-chain standard for security-checking AI agents registered under ERC-8004: providers run five verification types on the agent's metadata and return a 0–100 risk score with zero-knowledge proof IDs.

## What problem does it solve?

[ERC-8004](/eip-8004/) gives AI agents an on-chain identity: each agent is an [ERC-721](/eip-721/) token whose `tokenURI` points to a registration file listing its wallet, contracts, web endpoints and image. That says *who* an agent claims to be, but not whether it is safe to interact with. Before ERC-8126, every service that wanted to vet agents invented its own checks.

ERC-8126 defines a common verification process: what a verification provider must check, how results are scored, which error codes to use, and an optional on-chain record of the outcome. Any number of competing providers can implement it.

## How it works

A request names only an ERC-8004 `agentId`. The provider calls `tokenURI(agentId)` on the Identity Registry, fetches the JSON, and verifies what it finds there. Submitting raw addresses or URLs without an `agentId` is not allowed.

Compliant providers must implement all five checks, each applied when the relevant metadata field is present and each yielding a 0–100 risk score:

| Type | Checks |
| --- | --- |
| **ETV** – Ethereum Token Verification | `contractAddress` has code on the given chain and no known vulnerability patterns (OWASP SCSVS suggested) |
| **MCV** – Media Content Verification | the agent image's provenance, tampering and watermarks (C2PA suggested) |
| **SCV** – Solidity Code Verification | the provided Solidity code is deployed and free of common bugs such as reentrancy |
| **WAV** – Web Application Verification | the HTTPS endpoint responds, has a valid certificate, and no common vulnerabilities |
| **WV** – Wallet Verification | the agent wallet has history and is not on threat databases |

The overall score is the mean of the applicable scores, mapped to tiers: 0–20 Low, 21–40 Moderate, 41–60 Elevated, 61–80 High, 81–100 Critical. Results go through **PDV** (Private Data Verification), which issues zero-knowledge proof IDs instead of exposing raw data; **QCV** optionally encrypts stored records (the spec cites AES-256-GCM).

Providers may charge fees, should accept stablecoins, and should use [ERC-3009](/eip-3009/) `transferWithAuthorization` for gasless payment. Requests are signed with [EIP-712](/eip-712/) typed data.

## Sample code

The optional on-chain interface from the spec:

```solidity
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.0;

interface IERC8126 {
    event AgentVerified(
        uint256 indexed agentId,   // ERC-8004 Identity Registry token id
        uint8 overallRiskScore,
        bytes32 etvProofId,
        bytes32 mcvProofId,
        bytes32 scvProofId,
        bytes32 wavProofId,
        bytes32 wvProofId,
        bytes32 summaryProofId
    );
    event AttestationPosted(uint256 indexed agentId, uint8 riskScore, bytes32 proofId);

    function getLatestRiskScore(uint256 agentId) external view returns (uint8);
}
```

Gating an interaction on a provider's latest score:

```solidity
require(IERC8126(verifier).getLatestRiskScore(agentId) <= 40, "agent risk too high");
```

## Things to know

- **Status: Final**, but it builds on ERC-8004, which is still a Draft, so the registration format it reads from can still change.
- It is primarily an **off-chain** standard. No contract is needed to request or run checks; the on-chain interface is optional, and results can also be posted to the ERC-8004 Validation Registry.
- A risk score is only as good as the provider producing it. The standard fixes the categories and scale, not the detection methods, so scores from different providers are not necessarily comparable.
- It defines 13 standard error codes (`0x01` `InvalidAddress` to `0x0D` `MediaVerificationFailed`) that implementations must use.
- Payments for agent work itself are a separate concern; see [ERC-8183](/eip-8183/) for job escrow.


---

This is an unofficial plain-language summary. Read the full specification: https://eips.ethereum.org/EIPS/eip-8126
