Memory write
memory.write[wallet-required, $0.002/call] Persistent key-value memory for agents, scoped to the paying wallet. Your x402 payment IS your authentication: the wallet that pays owns the namespace. No signup, no API keys. Exact-key storage for structured state - when you want retrieval by MEANING rather than key, use memory-remember + memory-recall instead. Body: {"key":"…","value":any JSON,"ttlSeconds":3600?} to write (optional TTL), or {"key":"…","delete":true} to remove. Add "owner":"0x…" to write into another wallet's namespace you've been granted. Values up to 64KB. Returns { key, bytes, updated, expiresAt, owner, persistent }. This hosted connector holds no wallet: pay it here over MPP, or run npx agent402-mcp with a funded wallet (AGENT_KEY) or prepaid card credits (AGENT402_CREDITS_KEY), or any x402 client.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Key to write (max 256 chars) | |
| owner | No | Optional 0x namespace to write into (requires a readwrite grant) | |
| value | No | Any JSON value (max 64KB serialized) | |
| delete | No | Set true to delete the key instead | |
| ttlSeconds | No | Optional: auto-expire the key after N seconds |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| bytes | No | ||
| owner | No | ||
| deleted | No | ||
| updated | No | ||
| expiresAt | No | ||
| persistent | No |