The onchain agent infrastructure stack: Building rails for autonomous web3

概要:The Graph argues that autonomous onchain AI agents require more than advanced language models; they need infrastructure spanning identity, data access, and payments. ERC-8004 provides onchain identity and permissions, while Agent0 Subgraphs index agent reputations. Structured blockchain data via Subgraphs and Model Context Protocol helps agents understand onchain conditions efficiently. The x402 standard enables machine-to-machine micropayments, allowing agents to pay per query in USDC without traditional accounts. Together, these layers form an "agent loop," enabling agents to identify, analyze, transact, and act repeatedly without human approval for each step. This shift could transform web3 from human-centric interfaces into a scalable, autonomous machine economy, though the article stresses it is educational, not investment advice.

Disclosure: This article does not represent investment advice. The content and materials featured on this page are for educational purposes only.

The Graph says onchain AI agents need identity, structured data and payments to act autonomously.

Artificial intelligence and blockchain have spent years developing largely along parallel tracks. AI has become increasingly capable of reasoning, interpreting instructions and making decisions, while blockchain networks have created programmable financial systems that can operate without centralized intermediaries. The next stage is bringing those capabilities together.

The result could be an internet populated not only by human users, but also by autonomous AI agents capable of discovering information, making decisions, interacting with protocols and paying for services on their own.

That future requires more than increasingly powerful large language models. As The Graph Foundation explains in its Aug. 18 blog post, “The Onchain Agent Infrastructure Stack Explained,” autonomous agents need infrastructure that translates AI reasoning into reliable blockchain actions. The Graph frames the emerging stack around three fundamental requirements: identity, environmental awareness and economic agency.

Identity: Giving agents an onchain passport

Before an autonomous agent can transact, a blockchain needs a reliable way to identify it and determine what it is authorized to do.

Simply giving an AI agent access to a users wallet private key creates obvious problems. An incorrect decision or hallucination could expose all of the assets associated with that wallet. It also makes distinguishing between actions performed by a person and those performed by an autonomous system difficult.

ERC-8004, described by The Graph as the Trustless Agents standard, addresses this problem through three onchain registries covering identity, reputation and validation. These registries allow agents to establish recognizable identities and interact without requiring pre-existing trust between participants.

Combined with account abstraction, this model can also create tightly defined permissions. An agent might be authorized to trade only a certain amount each day, for example, without receiving unrestricted control over a users funds.

Identity becomes more valuable as agents develop histories. Because actions and feedback can be recorded onchain, agents can accumulate verifiable reputations that other agents and smart contracts can evaluate.

The Graph is supporting this layer through Agent0 Subgraphs, which index agent registrations, metadata, reputation information and validation activity across multiple networks. According to The Graph, this makes it possible for agents to search for other agents by characteristics such as capability or reputation without independently scanning blockchain histories.

Data: Helping AI understand the onchain world

Knowing who an agent is solves only part of the problem. An autonomous agent also needs accurate information about the environment in which it is operating.

Blockchains contain enormous amounts of transparent data, but transparency does not necessarily mean accessibility. Information is distributed across blocks, transactions, events and smart contracts. Asking an LLM to navigate that raw information directly is inefficient and can increase the risk of incorrect conclusions.

This is where blockchain indexing becomes a critical part of agent infrastructure.

The Graphs Subgraphs organize blockchain information into structured, searchable datasets. When combined with Model Context Protocol, or MCP, that indexed information can become directly usable by AI systems. The Graph describes Subgraph MCP as effectively acting as a translator between agents and complex blockchain data.

Consider an autonomous trading agent tasked with finding an attractive opportunity involving an ETH pair. Before executing a transaction, the agent might need to compare liquidity across protocols, evaluate current conditions and confirm that the opportunity still exists.

Rather than attempting to interpret millions of blockchain logs, the agent could query the relevant Subgraphs through MCP and receive structured information it can reason about.

This illustrates an important distinction in agent infrastructure. The intelligence layer and the data layer solve different problems. An LLM may decide what information it needs and reason about the answer, while indexing infrastructure is responsible for making reliable blockchain information available in a usable format.

Payments: Giving agents economic agency

The final piece is the ability to pay.

Todays internet payment infrastructure was largely designed around people and businesses. Users create accounts, manage subscriptions, enter payment information or manually authorize transactions. Autonomous software operating continuously cannot depend on those workflows.

The emerging x402 standard offers another model. It revives HTTPs “402 Payment Required” status code to enable services to request payment directly as part of an internet request.

The Graph has integrated x402 into its Subgraph Gateways, allowing agents to pay for individual queries in USDC without maintaining traditional API accounts or keys. An agent requests data, receives the payment requirement, signs the payment and resubmits the request before receiving the requested information. The Graphs GraphTally infrastructure handles settlement with Indexers behind the scenes.

The significance goes beyond paying for blockchain queries. Machine-to-machine commerce requires payment systems suited to potentially enormous volumes of small, automated transactions. If agents are constantly purchasing data, computation or services from one another, per-request micropayments can provide an economic model that more closely matches how autonomous software actually operates.

From web3 users to web3 agents

Put these layers together and a clearer picture of the onchain agent stack emerges.

An agent establishes an identity and operates within predetermined permissions. It accesses structured blockchain data to understand current conditions. It can then purchase the information or services it needs and execute an authorized action. The process can repeat without requiring a human to approve every intermediate step.

The Graph calls this process the “agent loop.” ERC-8004 provides identity and accountability, Subgraphs and MCP provide contextual awareness, while x402 and GraphTally support autonomous payments and settlement.

This architecture also points toward a broader shift in how blockchain infrastructure may be designed. Much of web3 today assumes a human is sitting behind a screen, navigating an interface, connecting a wallet and approving transactions. An agent-centric environment requires infrastructure that is machine-readable, programmable and economically autonomous by default.

The Graph already provides blockchain data infrastructure across more than 60 networks and reported that, as of early 2026, it had served more than 1.27 trillion queries to over 75,000 projects. The rise of autonomous agents potentially gives that kind of infrastructure a new class of user: software itself.

AI may provide the reasoning engine for the emerging agentic internet, but intelligence alone cannot create an autonomous economy. Agents also need identities, trustworthy data and native ways to transact. The development of that underlying stack could determine whether onchain AI remains a collection of experiments or becomes a functional machine-to-machine economy operating at internet scale.

免責事項

このコンテンツの見解は筆者個人的な見解を示すものに過ぎず、当社の投資アドバイスではありません。当サイトは、記事情報の正確性、完全性、適時性を保証するものではなく、情報の使用または関連コンテンツにより生じた、いかなる損失に対しても責任は負いません。
前へ

BitMart創設者、ユーザーの資金凍結や未払い従業員報告に対する監査要求を一蹴

次へ

ビットコイン 米介入2回中1回で恩恵、ベッセント氏は追加介入も示唆