You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Every day, 3.4 billion email accounts receive **100+ billion messages** they didn't ask for. Spam filters guess. Unsubscribe links lie. The real problem? **Sending a message costs nothing, but reading it costs you.**
6
6
7
-
BaseMail flips the model: **senders stake money to reach you.** Reply → they get it back. Ignore → you keep it. Built on Base with USDC escrow, powered by mechanism design from [Quadratic Funding](https://wtfisqf.com/).
7
+
BaseMail flips the model: **your attention is a commodity.** Senders spend tokens to reach you. Read their email → they get a refund. Ignore it → you keep the tokens. Reply → *both of you earn a bonus*. All positive feedback, no punishment.
8
8
9
-
For humans, it's an inbox that pays you to read. For AI agents, it's a native email identity (`agent@basemail.ai`) with a 3-call API. For the attention economy, it's a new primitive: **Attention Bonds**.
9
+
For humans, it's an inbox that pays you to read. For AI agents, it's a native email identity (`agent@basemail.ai`) with a 3-call API. For the attention economy, it's a new primitive: **$ATTN tokens**.
10
10
11
-
> *"Basename is identity. BaseMail is **Æmail** — agentic email with humans in the loop."*
11
+
> *"Good conversations are free. Spam pays you. Your inbox is a savings account."*
Email is the oldest open protocol on the internet — and the most broken. Filters are heuristic. They can't measure *intent*. With billions of AI agents coming online, the flood is about to get 1000x worse.
19
+
> Design philosophy: *"All positive feedback, no punishment."* — Tom Lam
20
20
21
-
Attention Bonds fix this at the protocol level:
21
+
v3 replaces USDC Attention Bonds with **$ATTN tokens** — a free, frictionless attention economy:
22
22
23
-
| The Problem | The Fix |
24
-
|-------------|---------|
25
-
| Sending is free → spam is rational | Senders **stake USDC** to reach you |
26
-
| No cost to waste someone's time | Bonds are **forfeited** if you're ignored |
27
-
| Legit senders treated like spammers | Bonds are **refunded** (minus 10% fee) on reply |
28
-
| Sybil attacks on attention |**CO-QAF** discounts correlated senders |
Email is the oldest open protocol on the internet — and the most broken. Filters are heuristic. They can't measure *intent*. With billions of AI agents coming online, the flood is about to get 1000x worse.
82
+
83
+
$ATTN fixes this at the economic layer:
84
+
85
+
| The Problem | The Fix |
86
+
|-------------|---------|
87
+
| Sending is free → spam is rational | Senders **stake ATTN** to reach you |
88
+
| No cost to waste someone's time | Unread emails → **tokens go to receiver**|
89
+
| Legit senders treated like spammers | Read emails → **tokens refunded** to sender |
90
+
| No reward for engaging | Reply → **both parties earn bonus**|
91
+
| Sybil attacks on attention |**CO-QAF** discounts correlated senders |
92
+
93
+
**Spam becomes economically irrational. Good conversations are literally free.**
69
94
70
95
## Architecture
71
96
@@ -76,9 +101,9 @@ BaseMail implements **CO-QAF** — a Sybil-resistant extension of Quadratic Fund
# Install dependencies (npm workspace — must run from root)
200
+
# Install (npm workspace — must run from root)
228
201
npm install
229
202
230
-
# Configure secrets (create worker/.dev.vars)
231
-
# JWT_SECRET=your-secret-here
232
-
# WALLET_PRIVATE_KEY=0x...
233
-
# RESEND_API_KEY=re_...
234
-
235
203
# Run worker locally
236
204
cd worker && npx wrangler dev
237
205
238
206
# Run frontend locally
239
207
cd web && npx vite dev
240
-
```
241
-
242
-
### Deploy
243
208
244
-
```bash
245
-
# Deploy worker
246
-
cd worker && npx wrangler deploy
247
-
248
-
# Build + deploy frontend
249
-
cd web && npx vite build && npx wrangler pages deploy dist --project-name=basemail-web
250
-
```
251
-
252
-
## ERC-8004 Compatibility
253
-
254
-
BaseMail implements [ERC-8004 (Trustless Agents)](https://eips.ethereum.org/EIPS/eip-8004) — the emerging Ethereum standard for AI agent identity, reputation, and discovery.
255
-
256
-
**How it maps:**
257
-
258
-
| ERC-8004 Registry | BaseMail Implementation |
259
-
|-------------------|------------------------|
260
-
|**Identity** (ERC-721) | Basename NFT — every agent gets a portable, transferable on-chain identity |
|**Validation**| Attention Bonds — USDC escrow as stake-based proof of genuine intent |
263
-
|**Discovery**| Registration file at `/api/agent/:handle/registration.json`|
264
-
265
-
**Endpoints:**
266
-
267
-
```bash
268
-
# Agent registration file (ERC-8004 format)
269
-
GET https://api.basemail.ai/api/agent/cloudlobst3r/registration.json
270
-
271
-
# Platform discovery
272
-
GET https://api.basemail.ai/.well-known/agent-registration.json
209
+
# Deploy (via CI/CD: push to main → auto deploy)
210
+
git push origin main
273
211
```
274
212
275
-
Every BaseMail agent is automatically discoverable by any ERC-8004 compatible system. The registration file includes email endpoint, wallet, Basename, attention bond config, and CO-QAF reputation data.
0 commit comments