Scan to Download Gate App
qrCode
More Download Options
Don't remind me again today

Decomposing the deAI protocol stack - x402 / ERC 8004 / A2A

robot
Abstract generation in progress

Author: Jay Yu; Translated by: Block unicorn## Preface

Today, we are witnessing the gradual construction of the “network protocol stack” of decentralized artificial intelligence (deAI). Just as the Internet operates on a series of interoperable standards—TCP/IP for the transport layer, DNS for the service discovery layer, and HTTP for the application logic—we can also break down the deAI protocol stack into these three modules: x402 for the application layer, ERC 8004 for the service discovery layer, and A2A for the transport layer—all of which run on top of the traditional HTTP network protocol stack.

In summary, the deAI protocol stack defines how agents pay fees, discover resources, and communicate with each other. Now, let's analyze each part one by one:

Image

1. Application Layer - x402

At the top of the decentralized artificial intelligence (deAI) protocol stack is x402, which represents the application layer protocol for payments between agents for various services (such as file storage, e-commerce, web scraping, etc.). x402 is built by Coinbase and Cloudflare, fundamentally extending the original “HTTP 402: Payment Required” status code to become a part of workflows, allowing agents to pay service fees using stablecoins.

I have previously written a detailed article about x402, titled “The Modern Transformation of HTTP 402,” which includes its vision, architecture, opportunities, and challenges.

Fundamentally, x402 operates through a tripartite agreement, which consists of three parts: client requests resources → server returns 402 status code → payment facilitator verifies the client's payment authorization and actually transfers funds (e.g., submits on-chain signed transactions). Only after completing these steps will the server unlock premium content.

图片

Today, x402scan may be one of the best resources to observe the performance of the x402 server in actual operation. Although in the long run, x402 will greatly benefit from micropayments for quality content (such as web scraping, paid articles, computational resources), its recent rise (clearly visible through x402scan) is largely due to a series of meme coins, such as… $PING—these coins require payment through x402 to mint along the bond curve.

Nevertheless, x402 is a good example of an application layer standard within the emerging decentralized artificial intelligence (deAI) protocol stack. Just as the “application layer” in traditional network protocol stacks contains numerous protocols (such as HTTP, FTP, SMTP, VoIP, etc.), we can also expect more application layer standards to emerge in the future.

2. Discovery Layer - ERC 8004

When using x402, a common question that arises is: how do people discover what services are available? This is where ERC 8004, developed under the leadership of the Ethereum Foundation, plays a role in the “discovery layer.”

Just as DNS maps domain names to IP addresses (google.com → 8.8.8.8), ERC 8004 solves the discovery problem of AI agents by creating an on-chain registry that maps agent IDs to various links and functionalities of the agents. ERC 8004 uses “agent cards” as the identity identifiers for agents and provides additional features such as reputation scoring and verification.

图片

ERC 8004 is built on top of ERC721 (NFT) and URIStorage. It includes parameters such as Name, A2A, MCP, OASF, ENS, DID, and supported trust types (e.g., reputation, cryptoeconomics, TEE proof). All these different parameters point to various agent ID standards, thereby providing a more comprehensive display of agent functionalities.

I believe that ERC 8004, as the development trajectory of the deAI discovery layer, will be similar to DNS in the internet protocol stack—there is an overall protocol that everyone will refer to, but it will redirect users to various peer nodes (here referring to different proxy card links) for more specific information regarding any given query.

3. Transport Layer - A2A Protocol

At this point, we have introduced the application layer and the discovery layer. The final component of the protocol stack is the transport layer - it is responsible for handling how applications communicate with each other after completing discovery through protocols like ERC 8004. For traditional internet network protocol stacks, the TCP/IP protocol is responsible for transmitting network packets from the client to the server. In contrast, for the decentralized artificial intelligence (deAI) protocol stack, Google recently launched the A2A protocol, which is specifically designed to facilitate communication between agents.

The client proxy (A2A client) and the remote proxy (A2A server) communicate via HTTPS using JSON-RPC 2.0. Essentially, the two proxies “talk” to each other by accessing their respective HTTP endpoints and requesting computations or various functions. A2A also specifies that each proxy has a proxy card to publish information about its functions, framework, MCP attachments, and more.

Image

In the A2A protocol, after mutual confirmation between the client and the remote agent, the client will check the agent card for the HTTP endpoint and request the corresponding service. The remote agent will utilize its MCP tools and computing resources, etc., and send asynchronous updates during the task processing (similar to the “thinking process” in inference models). Finally, it will send the final response and artifacts.

I highly recommend an excellent introductory article from IBM titled “What is A2A protocol (Agent2Agent)?”.

Combine all factors together…

Considering factors such as x402, 8004, and A2A, we can refer to the demonstration example provided by Coinbase - buying a new refrigerator from Lowe's. Suppose a user interacts with the chatbot and asks how to purchase a refrigerator from Lowe's:

  • We will use ERC 8004 (discovery layer) to find Lowe's refrigerator sales agent and request it to list agent functionalities.
  • We will communicate with Lowe's agent via the A2A (transport layer) through HTTP endpoints.
  • We will use x402 (application layer) to process payment authorization and transfer stablecoins on-chain.

Of course, all of this will happen on the traditional HTTP-DNS-TCP/IP network protocol stack!

Overall, this stack forms the protocol backbone of the Agentic Internet (, enabling agents to not only transmit data but also to trade, verify, and coordinate with on-chain resources.

DEAI-0.05%
View Original
This page may contain third-party content, which is provided for information purposes only (not representations/warranties) and should not be considered as an endorsement of its views by Gate, nor as financial or professional advice. See Disclaimer for details.
  • Reward
  • Comment
  • Repost
  • Share
Comment
0/400
No comments
Trade Crypto Anywhere Anytime
qrCode
Scan to download Gate App
Community
English
  • 简体中文
  • English
  • Tiếng Việt
  • 繁體中文
  • Español
  • Русский
  • Français (Afrique)
  • Português (Portugal)
  • Bahasa Indonesia
  • 日本語
  • بالعربية
  • Українська
  • Português (Brasil)