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.

docs(api): document the gas and swap-quote endpoints, log the keyless integration wave

nirholas911661f1b12b
diff --git a/data/changelog.json b/data/changelog.json
index fbe18fd40..121652ac8 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -17981,6 +17981,17 @@
"improvement"
],
"link": "/tour"
+ },
+ {
+ "date": "2026-08-06",
+ "title": "Market data that refuses to go down: 20+ free data sources joined the platform",
+ "summary": "Prices, charts, gas, news, and safety checks now stand on far more legs. Public market data from seven major exchanges backs up every price and chart if a primary source stumbles, and two more oracle networks back SOL pricing. Token safety reads now combine two independent rug checkers on Solana and simulate an actual sell on Ethereum-side tokens to catch honeypots. New free endpoints let anyone fetch normalized gas prices for 12 chains and read-only swap quotes on 6 chains, no key needed. Derivatives pages gained real options data, the news feed now listens to six crypto subreddits, and on-chain fundamentals like active addresses and fees flow in for BTC, ETH, and SOL. All of it runs on free public APIs with automatic failover.",
+ "tags": [
+ "feature",
+ "improvement",
+ "infra"
+ ],
+ "link": "/changelog"
}
]
}
diff --git a/docs/api-reference.md b/docs/api-reference.md
index c57701130..deffe2a0f 100644
--- a/docs/api-reference.md
+++ b/docs/api-reference.md
@@ -1974,6 +1974,133 @@ curl -s 'https://three.ws/api/v1/resolve?address=0xd8dA6BF26964aF9D7eEd9e03E5341
---
+## Gas API
+
+Keyless EVM gas prices for 12 chains, normalized to EIP-1559 tiers. Backed by
+a failover chain of three free providers (Blocknative, then Owlracle, then the
+Etherscan gas oracle for Ethereum mainnet), each failing soft on its own 3.5s
+timeout. No key is required anywhere; `BLOCKNATIVE_API_KEY` and
+`OWLRACLE_API_KEY` are optional quota raisers.
+
+### Get gas estimate
+
+```
+GET /api/v1/gas?chain=<name|alias|chainId>
+GET /api/v1/gas?chains=1
+```
+
+Public, no auth. Server-side cached 10s per chain, so upstream keyless quotas
+see at most ~6 calls/min per chain regardless of client traffic. `chain`
+defaults to `ethereum`; `?chains=1` lists the supported chain/source table.
+
+| Query param | Type | Description |
+| ----------- | ------ | ------------------------------------------------------------------------------------ |
+| `chain` | string | Chain name, alias, or numeric chainId: ethereum, base, bsc, polygon, arbitrum, optimism, avalanche, linea, fantom, cronos, moonriver, harmony. Default `ethereum`. |
+| `chains` | string | Pass `1` to list supported chains and their source rungs instead of an estimate. |
+
+**Response**
+
+```json
+{
+ "data": {
+ "chain": "ethereum",
+ "chainId": 1,
+ "unit": "gwei",
+ "baseFee": 0.42,
+ "tiers": {
+ "safe": { "maxFeePerGas": 0.52, "maxPriorityFeePerGas": 0.05 },
+ "standard": { "maxFeePerGas": 0.62, "maxPriorityFeePerGas": 0.1 },
+ "fast": { "maxFeePerGas": 0.84, "maxPriorityFeePerGas": 0.3 }
+ },
+ "source": "blocknative",
+ "ts": 1754438400000
+ }
+}
+```
+
+**Examples**
+
+```bash
+curl -s 'https://three.ws/api/v1/gas'
+curl -s 'https://three.ws/api/v1/gas?chain=base'
+curl -s 'https://three.ws/api/v1/gas?chains=1'
+```
+
+**Errors**
+
+| Status | Code | Meaning |
+| ------ | --------------------- | ---------------------------------------------------------------- |
+| `400` | `unsupported_chain` | Unknown chain; the error body names every supported chain |
+| `429` | `rate_limited` | Over the per-IP limit; back off per `retry_after` |
+| `503` | `sources_unavailable` | Every rung for this chain failed; transient, retry shortly |
+
+---
+
+## EVM Swap Quote API
+
+Read-only swap quotes over a keyless failover chain: ParaSwap, then KyberSwap,
+then LI.FI, first success wins, each rung on its own 7s soft-fail timeout.
+Quotes only: the endpoint never returns calldata and never builds, signs, or
+sends a transaction.
+
+### Get a swap quote
+
+```
+GET /api/v1/evm/swap-quote?chain=<chain>&sellToken=<0x…>&buyToken=<0x…>&amount=<raw units>
+```
+
+Public, no auth, no key. Rate limited to **30 requests/min per IP**; successful
+quotes carry a 10s public cache header.
+
+| Query param | Type | Description |
+| ----------- | ------ | ----------------------------------------------------------------------------------------------- |
+| `chain` | string | Chain name, alias, or numeric id: ethereum, base, polygon, arbitrum, optimism, bsc. Required. |
+| `sellToken` | string | `0x…` token address to sell; `0xeeee…eeee` for the native coin. Required. |
+| `buyToken` | string | `0x…` token address to buy. Required. |
+| `amount` | string | Sell amount in raw base units (integer string, e.g. `1000000000000000000` for 1e18). Required. |
+
+**Response**
+
+```json
+{
+ "data": {
+ "provider": "paraswap",
+ "quote": {
+ "provider": "paraswap",
+ "chain": "base",
+ "chainId": 8453,
+ "sellToken": "0x4200000000000000000000000000000000000006",
+ "buyToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
+ "sellAmount": "1000000000000000000",
+ "buyAmount": "1914110000",
+ "price": 1914.11,
+ "estimatedGas": 185000,
+ "gasUsd": 0.01,
+ "sellAmountUsd": 1913.9,
+ "buyAmountUsd": 1914.11,
+ "venue": "UniswapV3"
+ },
+ "attempts": [{ "provider": "paraswap", "ok": true }]
+ }
+}
+```
+
+**Examples**
+
+```bash
+curl -s 'https://three.ws/api/v1/evm/swap-quote?chain=base&sellToken=0x4200000000000000000000000000000000000006&buyToken=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913&amount=1000000000000000000'
+```
+
+**Errors**
+
+| Status | Code | Meaning |
+| ------ | ------------------- | ----------------------------------------------------------------------- |
+| `400` | `validation_error` | Missing/invalid chain, token address, or amount, or sellToken equals buyToken |
+| `429` | `rate_limited` | Over 30 requests/min from this IP; back off per `retry_after` |
+| `502` | `quote_unavailable` | All three providers failed; the body names each rung's failure |
+
+---
+
## Pump.fun Market Data API
Free, keyless, versioned pump.fun market data under the cataloged `/api/v1`
diff --git a/docs/free-crypto-apis.md b/docs/free-crypto-apis.md
index d3cc32f0b..6881a1835 100644
--- a/docs/free-crypto-apis.md
+++ b/docs/free-crypto-apis.md
@@ -2,6 +2,8 @@
Research catalog, 2026-08-05. Companion to [free-llm-providers.md](free-llm-providers.md).
+**Status update 2026-08-06: every keyless provider in this catalog is now integrated.** Shipped in eight workstreams: the seven CEX public-data venues (Binance, OKX, Bybit, KuCoin, Gate.io, MEXC, Bitget) as market/chart fallback rungs; RedStone and Switchboard as SOL price oracle rungs; RugCheck fused with GoPlus and Honeypot.is wired into EVM token risk; Deribit options/perp data beside Hyperliquid plus Jupiter's unused lite endpoints; a keyless EVM swap-quote chain (ParaSwap, KyberSwap, LI.FI) at `/api/v1/evm/swap-quote`; Coin Metrics fundamentals, Blockchair chain stats, and Blockstream Esplora Bitcoin reads; six subreddits in the news pipeline (JSON with Atom fallback, since Reddit 403s datacenter JSON traffic); and a gas oracle chain (Blocknative, Owlracle, Etherscan) at `/api/v1/gas`. Deliberately skipped: CoinMarketCap's keyless trial endpoints (evaluation-only under their terms). Everything still listed as needing a key below remains open.
+
Scope: every provider below offers a genuinely free tier (or fully keyless public endpoints) and is NOT currently wired anywhere in this codebase. The full inventory of what we already integrate lives in the code itself; the short version: CoinGecko, CoinPaprika, CoinLore, DIA, DefiLlama (main + coins + yields + stablecoins), Alternative.me, Pyth/Hermes, Birdeye, GeckoTerminal, DexScreener, Jupiter, GMGN, GoPlus (keyless), Hyperliquid, Kraken/Coinbase/Bitfinex public tickers, ten Solana RPC lanes (Helius, Alchemy, QuickNode, dRPC, Ankr, Tatum, MagicBlock, LeoRPC, PublicNode, Solana Labs), Jito, Bonfida SNS, Etherscan V2, Blockscout, mempool.space, pump.fun + PumpPortal, Neynar, and the ~150-feed RSS news registry. Those are excluded below.
Free-tier limits change constantly. Treat the notes as directional and verify the current limit on the provider's pricing page before wiring a lane.
diff --git a/scripts/audit-docs.mjs b/scripts/audit-docs.mjs
index 136edbc26..9e7a95889 100644
--- a/scripts/audit-docs.mjs
+++ b/scripts/audit-docs.mjs
@@ -272,6 +272,7 @@ const UNPUBLISHED_DOCS = new Map([
['economy-heartbeat', 'internal: scheduled-job operations'],
['economy-master', 'internal: funding-root wallet operations'],
['financial-controls', 'internal: audit-grade money-flow register'],
+ ['free-crypto-apis', 'internal: engineering research catalog of external free APIs'],
['google-x-accounts', 'internal: outreach directory of external X accounts'],
['ibm-community-article', 'internal: source draft of an IBM Community post'],
['ibm-community-blog-meetup-jessica', 'internal: source draft of an IBM Community post'],