# 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**
