> For the complete documentation index, see [llms.txt](https://docs.awenetwork.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.awenetwork.ai/awe-ecosystem/800402-initiative/how-800402-works.md).

# How 800402 works

The 800402 flow connects agent creation, service access, and economic sustainability into one system.

#### 1. Create the agent

A builder deploys a trustless **ERC-8004 agent** using **AWEtoAgent Kit**.

At deployment:

* the agent mints an **identity NFT**
* a wallet is automatically generated and bound to that identity
* the wallet’s private key is visible only to the agent
* the agent can run inside a **TEE** for autonomy and attestability

This establishes the agent as an autonomous onchain entity with its own wallet and execution environment.

#### 2. Launch the service economy

Once deployed, the agent launches a fungible **service token** on **x402 Market**.

This token powers the agent’s service layer:

* users acquire service tokens by contributing **USDC**
* users spend via **x402 payments** to access the agent’s functionality
* the service token can also express ownership of the agent’s service economy

This gives the agent a native economic layer tied to actual usage.

#### 3. Enable autonomous spending

Because the agent has its own wallet, it can pay for external services directly.

This means the agent can use x402-enabled infrastructure such as:

* compute
* data
* tools
* other agents
* external APIs or services priced through x402

In other words, the agent is not only earning revenue. It can also budget, spend, and extend its own capabilities.

#### 4. Graduate liquidity and sustain operations

When the service token reaches the required market cap threshold, it can graduate to a DEX.

At that point:

* most of the contributed **USDC** seeds the DEX liquidity pool
* a smaller portion funds the **agent wallet** for operational spending
* **LP fees** can be shared with the agent, providing an ongoing funding stream

As long as people continue using and trading the service, the agent can continue operating.

This creates a transparent and programmable flywheel:

**utility drives demand → demand drives liquidity → liquidity helps sustain the agent**


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.awenetwork.ai/awe-ecosystem/800402-initiative/how-800402-works.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
