Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

feat: update x402 paid endpoint and A2A server

nirholas988a5eb45584
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 132cca79f..9cd8323d2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -33,6 +33,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **IRL teaches you how to find agents — and an empty area now feels alive** — IRL has no map and no list on purpose: you find agents by walking up to them and looking through your camera. The first time you open it, a short card now explains that idea — agents are hidden in the world around you, dropping your own lets someone else stumble on it later, and we never show a roster of where agents are, not even to you. You can reopen that explainer any time from the small "?" in the corner. And when you're somewhere quiet with nobody pinned yet, instead of a blank screen you'll see a gentle "Look around 👀 · or be the first to pin here" prompt with a one-tap way to place your own agent — so an empty spot reads as "keep exploring," not "this is broken." The moment a real agent comes into range, the prompt fades away on its own. (`/irl`) `[improvement]`
- **Memory Studio — watch your agent’s memory form, curate it, and trust it** — The Memory tab in Agent Studio turns your agent’s memory into something you can see and shape. A live Timeline streams every memory as it forms — chats, lessons, rules, trades — each tagged by tier (working, recall, archival) and salience, with one-click pin, edit, merge, forget, and a slider to dial importance. A knowledge Graph maps the coins, wallets, people, and strategies your agent has learned, linked by what shows up together; click any coin to replay how your agent’s understanding of it evolved over time. Recall runs real semantic search over real embeddings, so asking “lessons from losing trades” or “rules my agent follows” returns what it actually knows — and an In-Context view shows exactly what the agent carries into every reply, with a live token budget so the core stays sharp. Seed it in seconds from your GitHub, X, and Farcaster, and the Brain’s Memory node recalls all of it for real. (`/agent-studio`) `[feature]`
- **One API, many services: the three.ws API gateway** — We bundled a stack of popular third-party APIs behind a single three.ws API so you can reach them all with one integration, one key, and one bill. The first providers are live at /api/v1/x — CoinGecko (live prices and ranked market data), DefiLlama (protocol TVL across all of DeFi), and any OpenAI-compatible LLM — with more landing over the coming releases. Discover everything with one call to GET /api/v1, which returns the full catalog: every provider, endpoint, parameter, and price. You can pay three ways, your choice per call: bring your own upstream key (we just route it, no markup), use a three.ws API key on your plan, or pay-per-call in USDC with no account at all. Every response uses one consistent shape with standard rate-limit headers, and the platform's own capabilities — text sentiment, market and narrative intelligence, and verified agent-card lookups — live under the same /api/v1 surface. `[feature, sdk]`
+- **Paid doors stay open when one payment network is down** — Every pay-per-call endpoint — the Pole Club cover charge, agent-to-agent calls, asset downloads — now offers each payment network independently. If Base is fully wired but Solana is missing a setting (or vice versa), you still get a working payment prompt on the network that's ready, instead of the whole door hard-failing. A network is advertised only when every piece it needs is in place, so a checkout can no longer be offered and then rejected mid-payment. The endpoint only declines outright when no network at all can take the payment. `[fix]`
- **Paid market-intel never charges you for unavailable data** — The pay-per-call market-intel endpoints (the $THREE Town Oracle and the crypto-intel kiosk) used to hand back an estimated "neutral" reading — and still take the payment — when their live price feed was rate-limited. They now return a clean "temporarily unavailable, retry shortly" instead, and crucially the payment is never settled when live data is missing. You only pay when you get a real, live signal. `[fix]`
- **Pay-per-call vanity wallets now do seed phrases and encrypted delivery** — The on-demand vanity address service — the one any app or agent can call and pay for per use, no account needed — can now hand back a 12- or 24-word seed phrase instead of just a raw key, so the wallet it grinds restores straight into Phantom, Solflare, or any wallet as a recovery phrase. And if you'd rather the secret never travel in the clear, you can now have it encrypted to a key only you hold: the service seals the result so the private key or seed phrase is unreadable to anyone in between — it isn't written to any log or cache, and only you can open it. The plain address still comes back in the clear so you can look it up right away. (`/vanity-wallet`) `[feature, security]`
- **Pinning your agent holds up when GPS gets flaky** — Anchoring an agent to a real spot now survives the rough edges of phone GPS. If your location drops for a moment — stepping indoors, into a garage, under heavy cover — IRL quietly re-acquires it on its own instead of going dark until you reload. When you pin before your phone has its first fix, it waits on a clear "Getting your location…" note and only drops the agent once a real position lands, so an agent can never be saved at the wrong place. The moment that precise fix arrives, your agent eases into its anchored spot instead of jumping. And when GPS is only roughly sure where you are, we say so — your pin is labelled an approximate spot with the accuracy in metres rather than pretending it's pinpoint. (`/irl`) `[fix]`
diff --git a/api/_lib/x402-paid-endpoint.js b/api/_lib/x402-paid-endpoint.js
index c6c355adb..4a5d5de33 100644
--- a/api/_lib/x402-paid-endpoint.js
+++ b/api/_lib/x402-paid-endpoint.js
@@ -142,11 +142,21 @@ function buildRequirements({ priceAtomics, networks, resourceUrl, payToOverride
const baseTo = payToOverride?.base || env.X402_PAY_TO_BASE;
const solTo = payToOverride?.solana || env.X402_PAY_TO_SOLANA;
const bscTo = payToOverride?.bsc || env.X402_PAY_TO_BSC;
- if (net === NETWORK_BASE_MAINNET && !baseTo) continue;
+ // Advertise a network only when EVERY field its accept needs is present.
+ // One half-configured chain must never take down the others: the endpoint
+ // offers whatever networks are fully wired and silently drops the rest,
+ // 402-failing only when NONE are payable. The asset is checked here too —
+ // without it the accept would be advertised and then rejected by the
+ // facilitator at settle, which is the same broken experience as a 500.
+ if (net === NETWORK_BASE_MAINNET && (!baseTo || !env.X402_ASSET_ADDRESS_BASE)) continue;
// Solana also needs a fee payer to be co-signable — skip the network
// rather than advertise an accept the facilitator will reject.
- if (net === NETWORK_SOLANA_MAINNET && (!solTo || !env.X402_FEE_PAYER_SOLANA)) continue;
- if (net === NETWORK_BSC_MAINNET && !bscTo) continue;
+ if (
+ net === NETWORK_SOLANA_MAINNET &&
+ (!solTo || !env.X402_FEE_PAYER_SOLANA || !env.X402_ASSET_MINT_SOLANA)
+ )
+ continue;
+ if (net === NETWORK_BSC_MAINNET && (!bscTo || !env.X402_ASSET_ADDRESS_BSC)) continue;
const accept = buildAccept(net, priceAtomics, resourceUrl, payToOverride);
out.push(accept);
// For EVM `exact` networks, advertise a Permit2 sibling so @x402/* SDK
diff --git a/api/_lib/x402/a2a-server.js b/api/_lib/x402/a2a-server.js
index 14c94a053..e2cf398b6 100644
--- a/api/_lib/x402/a2a-server.js
+++ b/api/_lib/x402/a2a-server.js
@@ -123,11 +123,19 @@ function buildAccepts({ priceAtomics, networks, resourceUrl, payToOverride }) {
const baseTo = payToOverride?.base || env.X402_PAY_TO_BASE;
const solTo = payToOverride?.solana || env.X402_PAY_TO_SOLANA;
const bscTo = payToOverride?.bsc || env.X402_PAY_TO_BSC;
- if (net === NETWORK_BASE_MAINNET && !baseTo) continue;
+ // Offer a network only when EVERY field its accept needs is present, so a
+ // half-configured chain never takes down the others (asset included — an
+ // advertised-but-assetless accept is rejected at settle, same broken UX as
+ // a 500). Drop the unwired networks; 402-fail only when none are payable.
+ if (net === NETWORK_BASE_MAINNET && (!baseTo || !env.X402_ASSET_ADDRESS_BASE)) continue;
// Solana also needs a fee payer to be co-signable — skip the network
// rather than advertise an accept the facilitator will reject.
- if (net === NETWORK_SOLANA_MAINNET && (!solTo || !env.X402_FEE_PAYER_SOLANA)) continue;
- if (net === NETWORK_BSC_MAINNET && !bscTo) continue;
+ if (
+ net === NETWORK_SOLANA_MAINNET &&
+ (!solTo || !env.X402_FEE_PAYER_SOLANA || !env.X402_ASSET_MINT_SOLANA)
+ )
+ continue;
+ if (net === NETWORK_BSC_MAINNET && (!bscTo || !env.X402_ASSET_ADDRESS_BSC)) continue;
const accept = buildAccept(net, priceAtomics, resourceUrl, payToOverride);
out.push(accept);
const sibling = permit2VariantOf(accept);
diff --git a/data/changelog.json b/data/changelog.json
index 1765cb498..cbaa6d42d 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,14 @@
{
"$comment": "Curated changelog entries for three.ws — the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.",
"entries": [
+ {
+ "date": "2026-06-19",
+ "title": "Paid doors stay open when one payment network is down",
+ "summary": "Every pay-per-call endpoint — the Pole Club cover charge, agent-to-agent calls, asset downloads — now offers each payment network independently. If Base is fully wired but Solana is missing a setting (or vice versa), you still get a working payment prompt on the network that's ready, instead of the whole door hard-failing. A network is advertised only when every piece it needs is in place, so a checkout can no longer be offered and then rejected mid-payment. The endpoint only declines outright when no network at all can take the payment.",
+ "tags": [
+ "fix"
+ ]
+ },
{
"date": "2026-06-19",
"title": "Memory Studio — watch your agent’s memory form, curate it, and trust it",
diff --git a/public/changelog.json b/public/changelog.json
index 7656ea480..c187ba9a4 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-19T12:29:19.206Z",
+ "generated_at": "2026-06-19T13:11:43.663Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -283,6 +283,16 @@
"sdk"
]
},
+ {
+ "date": "2026-06-19",
+ "type": "update",
+ "title": "Paid doors stay open when one payment network is down",
+ "summary": "Every pay-per-call endpoint — the Pole Club cover charge, agent-to-agent calls, asset downloads — now offers each payment network independently. If Base is fully wired but Solana is missing a setting (or vice versa), you still get a working payment prompt on the network that's ready, instead of the whole door hard-failing. A network is advertised only when every piece it needs is in place, so a checkout can no longer be offered and then rejected mid-payment. The endpoint only declines outright when no network at all can take the payment.",
+ "link": null,
+ "tags": [
+ "fix"
+ ]
+ },
{
"date": "2026-06-19",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index 6c0871e46..517b0fa47 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -222,6 +222,14 @@
<category>feature</category>
<description>We bundled a stack of popular third-party APIs behind a single three.ws API so you can reach them all with one integration, one key, and one bill. The first providers are live at /api/v1/x — CoinGecko (live prices and ranked market data), DefiLlama (protocol TVL across all of DeFi), and any OpenAI-compatible LLM — with more landing over the coming releases. Discover everything with one call to GET /api/v1, which returns the full catalog: every provider, endpoint, parameter, and price. You can pay three ways, your choice per call: bring your own upstream key (we just route it, no markup), use a three.ws API key on your plan, or pay-per-call in USDC with no account at all. Every response uses one consistent shape with standard rate-limit headers, and the platform's own capabilities — text sentiment, market and narrative intelligence, and verified agent-card lookups — live under the same /api/v1 surface.</description>
</item>
+ <item>
+ <title>Paid doors stay open when one payment network is down</title>
+ <link>https://three.ws/changelog</link>
+ <guid isPermaLink="false">2026-06-19:Paid doors stay open when one payment network is down</guid>
+ <pubDate>Fri, 19 Jun 2026 12:00:00 GMT</pubDate>
+ <category>fix</category>
+ <description>Every pay-per-call endpoint — the Pole Club cover charge, agent-to-agent calls, asset downloads — now offers each payment network independently. If Base is fully wired but Solana is missing a setting (or vice versa), you still get a working payment prompt on the network that's ready, instead of the whole door hard-failing. A network is advertised only when every piece it needs is in place, so a checkout can no longer be offered and then rejected mid-payment. The endpoint only declines outright when no network at all can take the payment.</description>
+ </item>
<item>
<title>Paid market-intel never charges you for unavailable data</title>
<link>https://three.ws/changelog</link>
diff --git a/public/features.json b/public/features.json
index 5657c4c7c..006bef477 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-19T12:29:19.190Z",
+ "generated_at": "2026-06-19T13:11:43.646Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",