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(examples): build the launch example, fix unstyled example pages

nirholasf414a8a75624
diff --git a/robinhood/robinhood-chain-examples/docs/examples/01-read-stock-price/index.html b/robinhood/robinhood-chain-examples/docs/examples/01-read-stock-price/index.html
index 7a4298a9a..757ec9c0d 100644
--- a/robinhood/robinhood-chain-examples/docs/examples/01-read-stock-price/index.html
+++ b/robinhood/robinhood-chain-examples/docs/examples/01-read-stock-price/index.html
@@ -5,12 +5,12 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Read a stock price · Robinhood Chain Examples</title>
<meta name="description" content="viem only, no SDK" />
- <link rel="stylesheet" href="../style.css" />
- <link rel="stylesheet" href="../hljs-theme.css" />
+ <link rel="stylesheet" href="../../style.css" />
+ <link rel="stylesheet" href="../../hljs-theme.css" />
</head>
<body>
<div class="topbar">
- <a class="brand" href="../index.html">Robinhood Chain Examples</a>
+ <a class="brand" href="../../index.html">Robinhood Chain Examples</a>
<a class="ghlink" href="https://github.com/nirholas/robinhood-chain-examples">GitHub ↗</a>
</div>
<div class="wrap"><div class="readme"><h1>01 · Read a Stock Token price (viem only)</h1>
diff --git a/robinhood/robinhood-chain-examples/docs/examples/02-stock-price-sdk/index.html b/robinhood/robinhood-chain-examples/docs/examples/02-stock-price-sdk/index.html
index f8c841b4c..777f40f1e 100644
--- a/robinhood/robinhood-chain-examples/docs/examples/02-stock-price-sdk/index.html
+++ b/robinhood/robinhood-chain-examples/docs/examples/02-stock-price-sdk/index.html
@@ -5,12 +5,12 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Stock price with the SDK · Robinhood Chain Examples</title>
<meta name="description" content="hoodchain basics" />
- <link rel="stylesheet" href="../style.css" />
- <link rel="stylesheet" href="../hljs-theme.css" />
+ <link rel="stylesheet" href="../../style.css" />
+ <link rel="stylesheet" href="../../hljs-theme.css" />
</head>
<body>
<div class="topbar">
- <a class="brand" href="../index.html">Robinhood Chain Examples</a>
+ <a class="brand" href="../../index.html">Robinhood Chain Examples</a>
<a class="ghlink" href="https://github.com/nirholas/robinhood-chain-examples">GitHub ↗</a>
</div>
<div class="wrap"><div class="readme"><h1>02 · Stock Token price with the SDK</h1>
diff --git a/robinhood/robinhood-chain-examples/docs/examples/03-portfolio-valuation/index.html b/robinhood/robinhood-chain-examples/docs/examples/03-portfolio-valuation/index.html
index ee99b5a4d..3f665f12c 100644
--- a/robinhood/robinhood-chain-examples/docs/examples/03-portfolio-valuation/index.html
+++ b/robinhood/robinhood-chain-examples/docs/examples/03-portfolio-valuation/index.html
@@ -5,12 +5,12 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Portfolio valuation · Robinhood Chain Examples</title>
<meta name="description" content="ERC-8056 multiplier math" />
- <link rel="stylesheet" href="../style.css" />
- <link rel="stylesheet" href="../hljs-theme.css" />
+ <link rel="stylesheet" href="../../style.css" />
+ <link rel="stylesheet" href="../../hljs-theme.css" />
</head>
<body>
<div class="topbar">
- <a class="brand" href="../index.html">Robinhood Chain Examples</a>
+ <a class="brand" href="../../index.html">Robinhood Chain Examples</a>
<a class="ghlink" href="https://github.com/nirholas/robinhood-chain-examples">GitHub ↗</a>
</div>
<div class="wrap"><div class="readme"><h1>03 · Multiplier-correct portfolio valuation</h1>
diff --git a/robinhood/robinhood-chain-examples/docs/examples/04-swap-memecoin/index.html b/robinhood/robinhood-chain-examples/docs/examples/04-swap-memecoin/index.html
index aec572421..d304c06ec 100644
--- a/robinhood/robinhood-chain-examples/docs/examples/04-swap-memecoin/index.html
+++ b/robinhood/robinhood-chain-examples/docs/examples/04-swap-memecoin/index.html
@@ -5,12 +5,12 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Swap a token · Robinhood Chain Examples</title>
<meta name="description" content="Uniswap v3 quote + execute" />
- <link rel="stylesheet" href="../style.css" />
- <link rel="stylesheet" href="../hljs-theme.css" />
+ <link rel="stylesheet" href="../../style.css" />
+ <link rel="stylesheet" href="../../hljs-theme.css" />
</head>
<body>
<div class="topbar">
- <a class="brand" href="../index.html">Robinhood Chain Examples</a>
+ <a class="brand" href="../../index.html">Robinhood Chain Examples</a>
<a class="ghlink" href="https://github.com/nirholas/robinhood-chain-examples">GitHub ↗</a>
</div>
<div class="wrap"><div class="readme"><h1>04 · Quote &amp; execute a swap (testnet)</h1>
diff --git a/robinhood/robinhood-chain-examples/docs/examples/05-watch-launches/index.html b/robinhood/robinhood-chain-examples/docs/examples/05-watch-launches/index.html
index fa5c79281..a000dae7d 100644
--- a/robinhood/robinhood-chain-examples/docs/examples/05-watch-launches/index.html
+++ b/robinhood/robinhood-chain-examples/docs/examples/05-watch-launches/index.html
@@ -5,12 +5,12 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Watch launches · Robinhood Chain Examples</title>
<meta name="description" content="NOXA + Odyssey event streams" />
- <link rel="stylesheet" href="../style.css" />
- <link rel="stylesheet" href="../hljs-theme.css" />
+ <link rel="stylesheet" href="../../style.css" />
+ <link rel="stylesheet" href="../../hljs-theme.css" />
</head>
<body>
<div class="topbar">
- <a class="brand" href="../index.html">Robinhood Chain Examples</a>
+ <a class="brand" href="../../index.html">Robinhood Chain Examples</a>
<a class="ghlink" href="https://github.com/nirholas/robinhood-chain-examples">GitHub ↗</a>
</div>
<div class="wrap"><div class="readme"><h1>05 · Watch launches live</h1>
diff --git a/robinhood/robinhood-chain-examples/docs/examples/06-firehose/index.html b/robinhood/robinhood-chain-examples/docs/examples/06-firehose/index.html
index ea8af6c07..9c19701f1 100644
--- a/robinhood/robinhood-chain-examples/docs/examples/06-firehose/index.html
+++ b/robinhood/robinhood-chain-examples/docs/examples/06-firehose/index.html
@@ -5,12 +5,12 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Sequencer firehose · Robinhood Chain Examples</title>
<meta name="description" content="Raw Nitro feed decoding" />
- <link rel="stylesheet" href="../style.css" />
- <link rel="stylesheet" href="../hljs-theme.css" />
+ <link rel="stylesheet" href="../../style.css" />
+ <link rel="stylesheet" href="../../hljs-theme.css" />
</head>
<body>
<div class="topbar">
- <a class="brand" href="../index.html">Robinhood Chain Examples</a>
+ <a class="brand" href="../../index.html">Robinhood Chain Examples</a>
<a class="ghlink" href="https://github.com/nirholas/robinhood-chain-examples">GitHub ↗</a>
</div>
<div class="wrap"><div class="readme"><h1>06 · Sequencer firehose</h1>
diff --git a/robinhood/robinhood-chain-examples/docs/examples/07-live-price-webpage/index.html b/robinhood/robinhood-chain-examples/docs/examples/07-live-price-webpage/index.html
index facd933ed..d30e2e9b0 100644
--- a/robinhood/robinhood-chain-examples/docs/examples/07-live-price-webpage/index.html
+++ b/robinhood/robinhood-chain-examples/docs/examples/07-live-price-webpage/index.html
@@ -5,12 +5,12 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Live price webpage · Robinhood Chain Examples</title>
<meta name="description" content="Client-side JSON-RPC" />
- <link rel="stylesheet" href="../style.css" />
- <link rel="stylesheet" href="../hljs-theme.css" />
+ <link rel="stylesheet" href="../../style.css" />
+ <link rel="stylesheet" href="../../hljs-theme.css" />
</head>
<body>
<div class="topbar">
- <a class="brand" href="../index.html">Robinhood Chain Examples</a>
+ <a class="brand" href="../../index.html">Robinhood Chain Examples</a>
<a class="ghlink" href="https://github.com/nirholas/robinhood-chain-examples">GitHub ↗</a>
</div>
<div class="wrap"><div class="readme"><h1>07 · Live price webpage (client-side, no backend)</h1>
diff --git a/robinhood/robinhood-chain-examples/docs/examples/08-portfolio-dashboard/index.html b/robinhood/robinhood-chain-examples/docs/examples/08-portfolio-dashboard/index.html
index a3dac31af..ec93198b7 100644
--- a/robinhood/robinhood-chain-examples/docs/examples/08-portfolio-dashboard/index.html
+++ b/robinhood/robinhood-chain-examples/docs/examples/08-portfolio-dashboard/index.html
@@ -5,12 +5,12 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Portfolio dashboard · Robinhood Chain Examples</title>
<meta name="description" content="React + polling hook" />
- <link rel="stylesheet" href="../style.css" />
- <link rel="stylesheet" href="../hljs-theme.css" />
+ <link rel="stylesheet" href="../../style.css" />
+ <link rel="stylesheet" href="../../hljs-theme.css" />
</head>
<body>
<div class="topbar">
- <a class="brand" href="../index.html">Robinhood Chain Examples</a>
+ <a class="brand" href="../../index.html">Robinhood Chain Examples</a>
<a class="ghlink" href="https://github.com/nirholas/robinhood-chain-examples">GitHub ↗</a>
</div>
<div class="wrap"><div class="readme"><h1>08 · Portfolio dashboard</h1>
diff --git a/robinhood/robinhood-chain-examples/docs/examples/09-x402-paid-api-call/index.html b/robinhood/robinhood-chain-examples/docs/examples/09-x402-paid-api-call/index.html
index 01deb537e..101b4beed 100644
--- a/robinhood/robinhood-chain-examples/docs/examples/09-x402-paid-api-call/index.html
+++ b/robinhood/robinhood-chain-examples/docs/examples/09-x402-paid-api-call/index.html
@@ -5,12 +5,12 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Pay for an API call · Robinhood Chain Examples</title>
<meta name="description" content="x402 client" />
- <link rel="stylesheet" href="../style.css" />
- <link rel="stylesheet" href="../hljs-theme.css" />
+ <link rel="stylesheet" href="../../style.css" />
+ <link rel="stylesheet" href="../../hljs-theme.css" />
</head>
<body>
<div class="topbar">
- <a class="brand" href="../index.html">Robinhood Chain Examples</a>
+ <a class="brand" href="../../index.html">Robinhood Chain Examples</a>
<a class="ghlink" href="https://github.com/nirholas/robinhood-chain-examples">GitHub ↗</a>
</div>
<div class="wrap"><div class="readme"><h1>09 · Pay for an API call</h1>
diff --git a/robinhood/robinhood-chain-examples/docs/examples/10-x402-sell-your-api/index.html b/robinhood/robinhood-chain-examples/docs/examples/10-x402-sell-your-api/index.html
index a884df51a..8396b7eab 100644
--- a/robinhood/robinhood-chain-examples/docs/examples/10-x402-sell-your-api/index.html
+++ b/robinhood/robinhood-chain-examples/docs/examples/10-x402-sell-your-api/index.html
@@ -5,12 +5,12 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Sell your API · Robinhood Chain Examples</title>
<meta name="description" content="x402 server middleware" />
- <link rel="stylesheet" href="../style.css" />
- <link rel="stylesheet" href="../hljs-theme.css" />
+ <link rel="stylesheet" href="../../style.css" />
+ <link rel="stylesheet" href="../../hljs-theme.css" />
</head>
<body>
<div class="topbar">
- <a class="brand" href="../index.html">Robinhood Chain Examples</a>
+ <a class="brand" href="../../index.html">Robinhood Chain Examples</a>
<a class="ghlink" href="https://github.com/nirholas/robinhood-chain-examples">GitHub ↗</a>
</div>
<div class="wrap"><div class="readme"><h1>10 · Sell your API</h1>
diff --git a/robinhood/robinhood-chain-examples/docs/examples/11-mcp-agent-session/index.html b/robinhood/robinhood-chain-examples/docs/examples/11-mcp-agent-session/index.html
index d9a0201c9..0aaa87989 100644
--- a/robinhood/robinhood-chain-examples/docs/examples/11-mcp-agent-session/index.html
+++ b/robinhood/robinhood-chain-examples/docs/examples/11-mcp-agent-session/index.html
@@ -5,23 +5,21 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>MCP agent session · Robinhood Chain Examples</title>
<meta name="description" content="Model Context Protocol" />
- <link rel="stylesheet" href="../style.css" />
- <link rel="stylesheet" href="../hljs-theme.css" />
+ <link rel="stylesheet" href="../../style.css" />
+ <link rel="stylesheet" href="../../hljs-theme.css" />
</head>
<body>
<div class="topbar">
- <a class="brand" href="../index.html">Robinhood Chain Examples</a>
+ <a class="brand" href="../../index.html">Robinhood Chain Examples</a>
<a class="ghlink" href="https://github.com/nirholas/robinhood-chain-examples">GitHub ↗</a>
</div>
<div class="wrap"><div class="readme"><h1>11 · MCP agent session</h1>
<p>Every other example here imports <code>hoodchain</code> and calls it directly. An LLM
agent cannot do that: it only reaches the world through tools its host has
-been given. <a href="https://www.npmjs.com/package/hood-mcp"><code>hood-mcp</code></a> is the bridge</p>
-<ul>
-<li>a Model Context Protocol server that exposes Robinhood Chain reads as
-protocol tools, so Claude Code, Claude Desktop, Cursor, or any MCP host can
-answer &quot;what is AAPL worth on Robinhood Chain?&quot; without a line of chain code.</li>
-</ul>
+been given. <a href="https://www.npmjs.com/package/hood-mcp"><code>hood-mcp</code></a> is the bridge:
+a Model Context Protocol server that exposes Robinhood Chain reads as protocol
+tools, so Claude Code, Claude Desktop, Cursor, or any MCP host can answer
+&quot;what is AAPL worth on Robinhood Chain?&quot; without a line of chain code.</p>
<p>This example is the client half of that conversation, written longhand: it
spawns the real <code>hood-mcp</code> data server over stdio, completes the MCP
initialize handshake, lists the tools the server advertises, then calls three
diff --git a/robinhood/robinhood-chain-examples/docs/examples/12-telegram-price-bot/index.html b/robinhood/robinhood-chain-examples/docs/examples/12-telegram-price-bot/index.html
index fc7aa53a6..6bc8d04e7 100644
--- a/robinhood/robinhood-chain-examples/docs/examples/12-telegram-price-bot/index.html
+++ b/robinhood/robinhood-chain-examples/docs/examples/12-telegram-price-bot/index.html
@@ -5,12 +5,12 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Telegram price bot · Robinhood Chain Examples</title>
<meta name="description" content="grammY + hoodchain" />
- <link rel="stylesheet" href="../style.css" />
- <link rel="stylesheet" href="../hljs-theme.css" />
+ <link rel="stylesheet" href="../../style.css" />
+ <link rel="stylesheet" href="../../hljs-theme.css" />
</head>
<body>
<div class="topbar">
- <a class="brand" href="../index.html">Robinhood Chain Examples</a>
+ <a class="brand" href="../../index.html">Robinhood Chain Examples</a>
<a class="ghlink" href="https://github.com/nirholas/robinhood-chain-examples">GitHub ↗</a>
</div>
<div class="wrap"><div class="readme"><h1>12 · Telegram price bot</h1>
diff --git a/robinhood/robinhood-chain-examples/docs/examples/13-launch-a-coin-testnet/index.html b/robinhood/robinhood-chain-examples/docs/examples/13-launch-a-coin-testnet/index.html
index d6fdf27ee..6c54c5450 100644
--- a/robinhood/robinhood-chain-examples/docs/examples/13-launch-a-coin-testnet/index.html
+++ b/robinhood/robinhood-chain-examples/docs/examples/13-launch-a-coin-testnet/index.html
@@ -5,33 +5,100 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Launch a coin (testnet) · Robinhood Chain Examples</title>
<meta name="description" content="Launchpad direct rail" />
- <link rel="stylesheet" href="../style.css" />
- <link rel="stylesheet" href="../hljs-theme.css" />
+ <link rel="stylesheet" href="../../style.css" />
+ <link rel="stylesheet" href="../../hljs-theme.css" />
</head>
<body>
<div class="topbar">
- <a class="brand" href="../index.html">Robinhood Chain Examples</a>
+ <a class="brand" href="../../index.html">Robinhood Chain Examples</a>
<a class="ghlink" href="https://github.com/nirholas/robinhood-chain-examples">GitHub ↗</a>
</div>
- <div class="wrap"><div class="readme"><h1>13 · Launch a coin (testnet) — blocked on siblings</h1>
-<p><strong>Status: not built.</strong> This example is supposed to launch a memecoin on
-Robinhood Chain testnet (46630) via <code>hood-launcher</code>&#39;s direct rail. That
-package doesn&#39;t exist yet in the <code>robinhood/</code> workspace — see the root
-README&#39;s SDK feedback for the full picture of what&#39;s shipped vs. pending.</p>
-<h2>What&#39;s missing</h2>
-<p><strong><code>hood-launcher</code></strong> — a launch client for NOXA and The Odyssey (prompt 08 in
-<code>prompts/robinhood-chain/</code>), wrapping the raw factory calldata documented in
-<code>hoodchain</code>&#39;s <code>launchpads.ts</code> (<code>NOXA_ADDRESSES.launchFactory</code>,
-<code>ODYSSEY_ADDRESSES.bondingCurveFactory</code>) into a single <code>launch({ name, symbol, initialBuy })</code> call.</p>
-<h2>What this example will do once it exists</h2>
-<pre><code class="hljs language-bash">ROBINHOOD_CHAIN_PRIVATE_KEY=0x... node index.js --name <span class="hljs-string">&quot;Test Coin&quot;</span> --symbol TEST
-</code></pre><p>launching a real token on testnet 46630 from faucet-funded ETH, printing the
-new token address, the launch tx hash, and an explorer link — the same
-funded-key pattern as <a href="../04-swap-memecoin">example 04</a>.</p>
-<h2>Owner action</h2>
-<p>Build <code>hood-launcher</code> (prompt 08), then this example becomes a real testnet
-launch script. Note the faucet is currently owner-blocked (Turnstile + Google
-Sign-In gate) independent of this — see example 04&#39;s README for that detail.</p>
+ <div class="wrap"><div class="readme"><h1>13 · Launch a coin (testnet)</h1>
+<p>Robinhood Chain has three ways to bring a token into the world: <strong>NOXA</strong> (one
+tx deploys the ERC-20, opens a Uniswap v3 pool, and locks the LP), <strong>The
+Odyssey</strong> (a native-ETH bonding curve that graduates to Uniswap), and a
+<strong>direct</strong> rail that deploys and seeds a Uniswap v3 pool yourself.
+<a href="https://www.npmjs.com/package/hood-launcher"><code>hood-launcher</code></a> puts all three
+behind one call.</p>
+<p>This example walks the whole pipeline for a single coin: build and screen the
+concept, run the rail&#39;s on-chain preflight, print exactly what the launch will
+cost and what it will send, then stop (dry run, the default) or broadcast.</p>
+<p><strong>What it proves:</strong> a launch is a pipeline, not a transaction. Content
+screening, ticker uniqueness, artwork, spend caps, and a rail preflight all
+have to pass before any ETH moves, and every one of those checks is a real
+read against the live chain.</p>
+<h2>Prerequisites</h2>
+<ul>
+<li>Node ≥ 20.</li>
+<li><strong>No wallet or key for the dry run.</strong> Preflight is read-only.</li>
+<li>Broadcasting needs a testnet-funded key. The public faucet is behind a
+Turnstile + Google Sign-In gate, so it cannot be scripted; fund a throwaway
+key by hand first. This is the same funding gate as
+<a href="../04-swap-memecoin">example 04</a>.</li>
+</ul>
+<h2>Run</h2>
+<pre><code class="hljs language-bash">npm install
+npm start <span class="hljs-comment"># dry run on the direct rail</span>
+node index.js --symbol MYCOIN <span class="hljs-comment"># pin your own ticker</span>
+node index.js --rail noxa <span class="hljs-comment"># ask a mainnet-only rail what it thinks</span>
+node index.js --generate-logo <span class="hljs-comment"># generate a real 3D GLB logo first (slow)</span>
+</code></pre><h2>Expected output</h2>
+<pre><code>1 - Operator config
+ network testnet (chain 46630)
+ signer none, reads only
+ live flag unset
+ mode dry run (no broadcast)
+
+2 - Coin
+ name Example Coin
+ symbol EXZJJ
+ rail direct
+ initialBuy 0.001 ETH
+ logo https://three.ws/models/demo-avatar.glb
+
+3 - Preflight (a real read against the live factory)
+ rail direct on testnet
+ protocol fee 0 ETH
+ tx value 0.001 ETH (fee + initial buy)
+ pairs with 0x7943e237c7F95DA44E0301572D358911207852Fa
+ ready no
+ blocker: No signer configured, direct rail requires a wallet account.
+
+4 - Result
+ Dry run: nothing was broadcast. The numbers above are what the
+ launch would cost right now, read from the live contracts.
+</code></pre><p>One blocker, and it is the honest one: no key is configured, so nothing can be
+signed. Everything else already passed against the real chain, including the
+WETH pair token the pool would use.</p>
+<h2>Which rail works on testnet</h2>
+<p>Only <code>direct</code>. Ask the others and preflight says so itself:</p>
+<pre><code>$ node index.js --rail noxa
+ blocker: NOXA only operates on mainnet 4663, no testnet deployment exists.
+
+$ node index.js --rail odyssey
+ blocker: The Odyssey only operates on mainnet 4663, no testnet deployment exists.
+</code></pre><p>That is not a limitation of this example. Both launchpads are mainnet-only
+contracts, and the launcher reads their deployment state rather than assuming
+it, so you find out in a free dry run instead of a reverted transaction.</p>
+<h2>Launching for real</h2>
+<pre><code class="hljs language-bash">LIVE=1 ACKNOWLEDGE_LAUNCH_RESPONSIBILITY=1 \
+ ROBINHOOD_CHAIN_PRIVATE_KEY=0x... node index.js --send
+</code></pre><p>Three separate gates, all deliberate: <code>LIVE=1</code> arms the launcher,
+<code>ACKNOWLEDGE_LAUNCH_RESPONSIBILITY=1</code> records that a human owns what gets
+deployed, and <code>--send</code> is the per-run confirmation. Spend caps
+(<code>MAX_LAUNCHES_PER_DAY</code>, <code>MAX_SEED_USDG</code>) are enforced on top of those, and a
+kill switch on disk can stop everything. A launch that clears all of that
+prints the token address, the tx hash, the pool, and an explorer link.</p>
+<h2>The safety rails are real, and you will hit them</h2>
+<p>Two of them fired while this example was being written, both correctly:</p>
+<ul>
+<li><strong>Content screening.</strong> An early draft described the coin using a brand term
+and the launcher refused to price it: <code>Concept rejected (description): contains denylisted term</code>.</li>
+<li><strong>Ticker uniqueness.</strong> The first hardcoded default collided with a token
+that already exists on testnet, so the default is now randomised: <code>Ticker &quot;EXMPL&quot; is already taken (testnet token 0x021b0a28...)</code>.</li>
+</ul>
+<p>Both are on-chain or policy reads that happen before any spend. That is the
+point of a preflight.</p>
<hr>
<p>Built by <a href="https://x.com/nichxbt">nirholas</a> · <a href="https://three.ws">three.ws</a></p>
</div></div>
diff --git a/robinhood/robinhood-chain-examples/docs/examples/14-agent-paper-trader/index.html b/robinhood/robinhood-chain-examples/docs/examples/14-agent-paper-trader/index.html
index d485195a1..75eaa2558 100644
--- a/robinhood/robinhood-chain-examples/docs/examples/14-agent-paper-trader/index.html
+++ b/robinhood/robinhood-chain-examples/docs/examples/14-agent-paper-trader/index.html
@@ -5,12 +5,12 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Agent paper trader · Robinhood Chain Examples</title>
<meta name="description" content="Strategy loop, simulated" />
- <link rel="stylesheet" href="../style.css" />
- <link rel="stylesheet" href="../hljs-theme.css" />
+ <link rel="stylesheet" href="../../style.css" />
+ <link rel="stylesheet" href="../../hljs-theme.css" />
</head>
<body>
<div class="topbar">
- <a class="brand" href="../index.html">Robinhood Chain Examples</a>
+ <a class="brand" href="../../index.html">Robinhood Chain Examples</a>
<a class="ghlink" href="https://github.com/nirholas/robinhood-chain-examples">GitHub ↗</a>
</div>
<div class="wrap"><div class="readme"><h1>14 · Agent paper trader</h1>
diff --git a/robinhood/robinhood-chain-examples/docs/index.html b/robinhood/robinhood-chain-examples/docs/index.html
index 6a6e3401d..f0d7bb8b6 100644
--- a/robinhood/robinhood-chain-examples/docs/index.html
+++ b/robinhood/robinhood-chain-examples/docs/index.html
@@ -15,12 +15,13 @@
</div>
<div class="wrap">
<h1>Robinhood Chain Examples</h1>
-<p class="hero-sub">14 small, runnable projects for Robinhood Chain (mainnet 4663 / testnet 46630): from a raw viem read to a live dashboard, a Telegram bot, and a paper trader. Every read below is real.</p>
+<p class="hero-sub">14 small, runnable projects for Robinhood Chain (mainnet 4663 / testnet 46630) —
+from a raw viem read to a live dashboard, a Telegram bot, and a paper trader. Every read below is real.</p>
<div class="embed-frame">
<iframe src="embed/07-live-price-webpage.html" title="Live Robinhood Chain Stock Token prices" loading="lazy"></iframe>
<div class="embed-label">
- <span>Example 07, running live: client-side JSON-RPC, no backend.</span>
+ <span>Example 07, running live — client-side JSON-RPC, no backend.</span>
<a href="examples/07-live-price-webpage/index.html">How it works →</a>
</div>
</div>
@@ -45,7 +46,7 @@
<div class="num">01</div>
<div class="title">Read a stock price</div>
<div class="concept">viem only, no SDK</div>
- <div class="proves">Robinhood Chain is a normal EVM L2: viem ships its chain def, Chainlink feeds are a plain readContract.</div>
+ <div class="proves">Robinhood Chain is a normal EVM L2 — viem ships its chain def, Chainlink feeds are a plain readContract.</div>
<span class="badge Beginner">Beginner</span>
</a>
<a class="card" href="examples/02-stock-price-sdk/index.html">
@@ -80,14 +81,14 @@
<div class="num">06</div>
<div class="title">Sequencer firehose</div>
<div class="concept">Raw Nitro feed decoding</div>
- <div class="proves">Transactions are visible ~100-300ms before they hit RPC, straight off the public feed socket.</div>
+ <div class="proves">Transactions are visible ~100–300ms before they hit RPC, straight off the public feed socket.</div>
<span class="badge Advanced">Advanced</span>
</a>
<a class="card" href="examples/07-live-price-webpage/index.html">
<div class="num">07</div>
<div class="title">Live price webpage</div>
<div class="concept">Client-side JSON-RPC</div>
- <div class="proves">Read-only chain calls work from a static page: no backend, no build step, live on this gallery below.</div>
+ <div class="proves">Read-only chain calls work from a static page — no backend, no build step, live on this gallery below.</div>
<span class="badge Beginner">Beginner</span>
</a>
<a class="card" href="examples/08-portfolio-dashboard/index.html">
@@ -136,7 +137,7 @@
<div class="num">14</div>
<div class="title">Agent paper trader</div>
<div class="concept">Strategy loop, simulated</div>
- <div class="proves">A strategy loop is just getQuote on a timer: real execution slots in later without a rewrite.</div>
+ <div class="proves">A strategy loop is just getQuote on a timer — real execution slots in later without a rewrite.</div>
<span class="badge Intermediate">Intermediate</span>
</a>
</div>
diff --git a/robinhood/robinhood-chain-examples/examples/11-mcp-agent-session/README.md b/robinhood/robinhood-chain-examples/examples/11-mcp-agent-session/README.md
index 6d2fe0edd..a1ddfc2b6 100644
--- a/robinhood/robinhood-chain-examples/examples/11-mcp-agent-session/README.md
+++ b/robinhood/robinhood-chain-examples/examples/11-mcp-agent-session/README.md
@@ -2,10 +2,10 @@
Every other example here imports `hoodchain` and calls it directly. An LLM
agent cannot do that: it only reaches the world through tools its host has
-been given. [`hood-mcp`](https://www.npmjs.com/package/hood-mcp) is the bridge
- - a Model Context Protocol server that exposes Robinhood Chain reads as
-protocol tools, so Claude Code, Claude Desktop, Cursor, or any MCP host can
-answer "what is AAPL worth on Robinhood Chain?" without a line of chain code.
+been given. [`hood-mcp`](https://www.npmjs.com/package/hood-mcp) is the bridge:
+a Model Context Protocol server that exposes Robinhood Chain reads as protocol
+tools, so Claude Code, Claude Desktop, Cursor, or any MCP host can answer
+"what is AAPL worth on Robinhood Chain?" without a line of chain code.
This example is the client half of that conversation, written longhand: it
spawns the real `hood-mcp` data server over stdio, completes the MCP
diff --git a/robinhood/robinhood-chain-examples/examples/13-launch-a-coin-testnet/README.md b/robinhood/robinhood-chain-examples/examples/13-launch-a-coin-testnet/README.md
index 4431dcd77..270d7e05d 100644
--- a/robinhood/robinhood-chain-examples/examples/13-launch-a-coin-testnet/README.md
+++ b/robinhood/robinhood-chain-examples/examples/13-launch-a-coin-testnet/README.md
@@ -1,33 +1,116 @@
-# 13 · Launch a coin (testnet) — blocked on siblings
+# 13 · Launch a coin (testnet)
-**Status: not built.** This example is supposed to launch a memecoin on
-Robinhood Chain testnet (46630) via `hood-launcher`'s direct rail. That
-package doesn't exist yet in the `robinhood/` workspace — see the root
-README's SDK feedback for the full picture of what's shipped vs. pending.
+Robinhood Chain has three ways to bring a token into the world: **NOXA** (one
+tx deploys the ERC-20, opens a Uniswap v3 pool, and locks the LP), **The
+Odyssey** (a native-ETH bonding curve that graduates to Uniswap), and a
+**direct** rail that deploys and seeds a Uniswap v3 pool yourself.
+[`hood-launcher`](https://www.npmjs.com/package/hood-launcher) puts all three
+behind one call.
-## What's missing
+This example walks the whole pipeline for a single coin: build and screen the
+concept, run the rail's on-chain preflight, print exactly what the launch will
+cost and what it will send, then stop (dry run, the default) or broadcast.
-**`hood-launcher`** — a launch client for NOXA and The Odyssey (prompt 08 in
-`prompts/robinhood-chain/`), wrapping the raw factory calldata documented in
-`hoodchain`'s `launchpads.ts` (`NOXA_ADDRESSES.launchFactory`,
-`ODYSSEY_ADDRESSES.bondingCurveFactory`) into a single `launch({ name, symbol,
-initialBuy })` call.
+**What it proves:** a launch is a pipeline, not a transaction. Content
+screening, ticker uniqueness, artwork, spend caps, and a rail preflight all
+have to pass before any ETH moves, and every one of those checks is a real
+read against the live chain.
-## What this example will do once it exists
+## Prerequisites
+
+- Node ≥ 20.
+- **No wallet or key for the dry run.** Preflight is read-only.
+- Broadcasting needs a testnet-funded key. The public faucet is behind a
+ Turnstile + Google Sign-In gate, so it cannot be scripted; fund a throwaway
+ key by hand first. This is the same funding gate as
+ [example 04](../04-swap-memecoin).
+
+## Run
```bash
-ROBINHOOD_CHAIN_PRIVATE_KEY=0x... node index.js --name "Test Coin" --symbol TEST
+npm install
+npm start # dry run on the direct rail
+node index.js --symbol MYCOIN # pin your own ticker
+node index.js --rail noxa # ask a mainnet-only rail what it thinks
+node index.js --generate-logo # generate a real 3D GLB logo first (slow)
+```
+
+## Expected output
+
+```
+1 - Operator config
+ network testnet (chain 46630)
+ signer none, reads only
+ live flag unset
+ mode dry run (no broadcast)
+
+2 - Coin
+ name Example Coin
+ symbol EXZJJ
+ rail direct
+ initialBuy 0.001 ETH
+ logo https://three.ws/models/demo-avatar.glb
+
+3 - Preflight (a real read against the live factory)
+ rail direct on testnet
+ protocol fee 0 ETH
+ tx value 0.001 ETH (fee + initial buy)
+ pairs with 0x7943e237c7F95DA44E0301572D358911207852Fa
+ ready no
+ blocker: No signer configured, direct rail requires a wallet account.
+
+4 - Result
+ Dry run: nothing was broadcast. The numbers above are what the
+ launch would cost right now, read from the live contracts.
```
-launching a real token on testnet 46630 from faucet-funded ETH, printing the
-new token address, the launch tx hash, and an explorer link — the same
-funded-key pattern as [example 04](../04-swap-memecoin).
+One blocker, and it is the honest one: no key is configured, so nothing can be
+signed. Everything else already passed against the real chain, including the
+WETH pair token the pool would use.
+
+## Which rail works on testnet
+
+Only `direct`. Ask the others and preflight says so itself:
+
+```
+$ node index.js --rail noxa
+ blocker: NOXA only operates on mainnet 4663, no testnet deployment exists.
+
+$ node index.js --rail odyssey
+ blocker: The Odyssey only operates on mainnet 4663, no testnet deployment exists.
+```
+
+That is not a limitation of this example. Both launchpads are mainnet-only
+contracts, and the launcher reads their deployment state rather than assuming
+it, so you find out in a free dry run instead of a reverted transaction.
+
+## Launching for real
+
+```bash
+LIVE=1 ACKNOWLEDGE_LAUNCH_RESPONSIBILITY=1 \
+ ROBINHOOD_CHAIN_PRIVATE_KEY=0x... node index.js --send
+```
+
+Three separate gates, all deliberate: `LIVE=1` arms the launcher,
+`ACKNOWLEDGE_LAUNCH_RESPONSIBILITY=1` records that a human owns what gets
+deployed, and `--send` is the per-run confirmation. Spend caps
+(`MAX_LAUNCHES_PER_DAY`, `MAX_SEED_USDG`) are enforced on top of those, and a
+kill switch on disk can stop everything. A launch that clears all of that
+prints the token address, the tx hash, the pool, and an explorer link.
+
+## The safety rails are real, and you will hit them
+
+Two of them fired while this example was being written, both correctly:
-## Owner action
+- **Content screening.** An early draft described the coin using a brand term
+ and the launcher refused to price it: `Concept rejected (description):
+ contains denylisted term`.
+- **Ticker uniqueness.** The first hardcoded default collided with a token
+ that already exists on testnet, so the default is now randomised: `Ticker
+ "EXMPL" is already taken (testnet token 0x021b0a28...)`.
-Build `hood-launcher` (prompt 08), then this example becomes a real testnet
-launch script. Note the faucet is currently owner-blocked (Turnstile + Google
-Sign-In gate) independent of this — see example 04's README for that detail.
+Both are on-chain or policy reads that happen before any spend. That is the
+point of a preflight.
---
diff --git a/robinhood/robinhood-chain-examples/examples/13-launch-a-coin-testnet/index.js b/robinhood/robinhood-chain-examples/examples/13-launch-a-coin-testnet/index.js
new file mode 100644
index 000000000..db3dec6f9
--- /dev/null
+++ b/robinhood/robinhood-chain-examples/examples/13-launch-a-coin-testnet/index.js
@@ -0,0 +1,168 @@
+/**
+ * 13. Launch a coin on Robinhood Chain testnet.
+ *
+ * Robinhood Chain has two native launchpads (NOXA and The Odyssey) plus a
+ * direct Uniswap v3 rail, and `hood-launcher` puts all three behind one call.
+ * This example walks the full pipeline for a single coin: build the concept,
+ * run the rail's on-chain preflight, show exactly what the launch will cost
+ * and what it will send, then either stop (dry run, the default) or broadcast.
+ *
+ * node index.js --name "Test Coin" --symbol TEST # dry run, reads only
+ * node index.js --rail odyssey # price a different rail
+ * LIVE=1 ROBINHOOD_CHAIN_PRIVATE_KEY=0x... node index.js --send
+ *
+ * The dry run is not a simulation against a fake chain: preflight is a real
+ * read against the real factory contracts, so the fee, the pair token, and any
+ * blockers are the chain's actual answers. Only `--send` (with `LIVE=1` and a
+ * funded key) broadcasts anything.
+ *
+ * Getting testnet ETH is the one manual step: the public faucet sits behind a
+ * Turnstile + Google Sign-In gate, so it cannot be scripted. Without a funded
+ * key this example still runs end to end and reports the real blocker. Nothing
+ * here is mocked.
+ */
+import { HoodLauncher, launchConfigSchema, loadOperatorConfig } from 'hood-launcher'
+import { mkdtempSync } from 'node:fs'
+import { tmpdir } from 'node:os'
+import { join } from 'node:path'
+import process from 'node:process'
+
+/**
+ * A ticker nobody has claimed yet.
+ *
+ * The launcher refuses to price a launch whose symbol already exists on the
+ * chain, which is the correct behaviour and also means a hardcoded default
+ * would break this example the first time someone actually launches it. A
+ * random suffix keeps the default runnable; pass `--symbol` to pin your own.
+ */
+function suggestSymbol() {
+ const alphabet = 'ABCDEFGHJKLMNPQRSTUVWXYZ23456789'
+ let suffix = ''
+ for (let i = 0; i < 3; i++) {
+ suffix += alphabet[Math.floor(Math.random() * alphabet.length)]
+ }
+ return `EX${suffix}`
+}
+
+/** Parse `--flag value` / boolean `--flag` pairs out of argv. */
+function parseArgs(argv) {
+ const args = {
+ name: 'Example Coin',
+ symbol: suggestSymbol(),
+ // `direct` is the only rail with a testnet deployment. NOXA and The
+ // Odyssey are mainnet-only, which preflight will tell you if you ask.
+ rail: 'direct',
+ initialBuyEth: 0.001,
+ send: false,
+ generateLogo: false,
+ }
+ for (let i = 0; i < argv.length; i++) {
+ const arg = argv[i]
+ if (arg === '--name') args.name = argv[++i] ?? args.name
+ else if (arg === '--symbol') args.symbol = argv[++i] ?? args.symbol
+ else if (arg === '--rail') args.rail = argv[++i] ?? args.rail
+ else if (arg === '--buy') args.initialBuyEth = Number(argv[++i] ?? 0)
+ else if (arg === '--send') args.send = true
+ else if (arg === '--generate-logo') args.generateLogo = true
+ }
+ return args
+}
+
+/**
+ * A placeholder logo so the default run is fast.
+ *
+ * hood-launcher's differentiator is that it will generate a real 3D GLB logo
+ * on the three.ws free forge lane when no `logoUri` is supplied. That is a
+ * genuine generation job taking a minute or more, so this example supplies a
+ * URI by default and exercises the forge path only behind `--generate-logo`.
+ */
+const PLACEHOLDER_LOGO = 'https://three.ws/models/demo-avatar.glb'
+
+const fmtEth = (wei) => `${Number(wei) / 1e18} ETH`
+
+function section(title) {
+ console.log(`\n\x1b[1m${title}\x1b[0m`)
+}
+
+async function main() {
+ const args = parseArgs(process.argv.slice(2))
+
+ // Operator config comes from the environment so a key is never a CLI arg
+ // (argv leaks into shell history and process listings).
+ const operator = loadOperatorConfig(process.env)
+ const dryRun = !args.send
+
+ section('1 - Operator config')
+ console.log(` network ${operator.network}${operator.network === 'mainnet' ? ' (real funds)' : ' (chain 46630)'}`)
+ console.log(` signer ${operator.privateKey ? 'set' : 'none, reads only'}`)
+ console.log(` live flag ${operator.live ? 'LIVE=1' : 'unset'}`)
+ console.log(` mode ${dryRun ? 'dry run (no broadcast)' : 'SEND'}`)
+
+ // Validated by the same schema the CLI and HTTP API use, so a bad symbol
+ // fails here rather than halfway through a launch.
+ const launchConfig = launchConfigSchema.parse({
+ name: args.name,
+ symbol: args.symbol,
+ // Kept deliberately plain: the launcher screens every concept against a
+ // denylist before it will price a launch, and brand terms are rejected.
+ description: 'A test coin launched from example 13 of the chain examples repo.',
+ rail: args.rail,
+ initialBuyEth: args.initialBuyEth,
+ // Omitting logoUri is what triggers real 3D logo generation.
+ ...(args.generateLogo ? {} : { logoUri: PLACEHOLDER_LOGO }),
+ ...(args.rail === 'direct' ? { direct: { seedEth: args.initialBuyEth } } : {}),
+ })
+
+ section('2 - Coin')
+ console.log(` name ${launchConfig.name}`)
+ console.log(` symbol ${launchConfig.symbol}`)
+ console.log(` rail ${launchConfig.rail}`)
+ console.log(` initialBuy ${launchConfig.initialBuyEth} ETH`)
+ console.log(` logo ${args.generateLogo ? 'generating a 3D GLB on the three.ws forge (slow)' : PLACEHOLDER_LOGO}`)
+
+ // The ledger and kill switch persist to disk; a temp dir keeps this example
+ // from writing into the user's project.
+ const dataDir = mkdtempSync(join(tmpdir(), 'hood-launcher-example-'))
+ const launcher = new HoodLauncher(operator, dataDir)
+
+ section('3 - Preflight (a real read against the live factory)')
+ const outcome = await launcher.launch(launchConfig, { dryRun })
+ const { preflight } = outcome
+
+ console.log(` rail ${preflight.rail} on ${preflight.network}`)
+ console.log(` protocol fee ${fmtEth(preflight.protocolFeeWei)}`)
+ console.log(` tx value ${fmtEth(preflight.estimatedValueWei)} (fee + initial buy)`)
+ if (preflight.pairToken) console.log(` pairs with ${preflight.pairToken}`)
+ console.log(` ready ${preflight.ready ? 'yes' : 'no'}`)
+ for (const blocker of preflight.blockers) {
+ console.log(` blocker: ${blocker}`)
+ }
+
+ section('4 - Result')
+ if (outcome.result) {
+ const r = outcome.result
+ console.log(` token ${r.token}`)
+ console.log(` launch tx ${r.launchTx}`)
+ console.log(` spent ${fmtEth(r.spentWei)}`)
+ if (r.pool) console.log(` pool ${r.pool}`)
+ console.log(` explorer ${r.explorer.token}`)
+ return
+ }
+
+ if (dryRun) {
+ console.log(' Dry run: nothing was broadcast. The numbers above are what the')
+ console.log(' launch would cost right now, read from the live contracts.')
+ console.log('\n To launch for real on testnet:')
+ console.log(' 1. Fund a throwaway key at the Robinhood Chain testnet faucet')
+ console.log(' 2. LIVE=1 ACKNOWLEDGE_LAUNCH_RESPONSIBILITY=1 \\')
+ console.log(' ROBINHOOD_CHAIN_PRIVATE_KEY=0x... node index.js --send')
+ } else {
+ console.log(' Not launched: the preflight blockers above must clear first.')
+ console.log(' A missing signer or an unfunded wallet is the usual cause.')
+ }
+}
+
+main().catch((err) => {
+ console.error(`\nFailed: ${err?.message ?? err}`)
+ process.exitCode = 1
+})
diff --git a/robinhood/robinhood-chain-examples/examples/13-launch-a-coin-testnet/package-lock.json b/robinhood/robinhood-chain-examples/examples/13-launch-a-coin-testnet/package-lock.json
new file mode 100644
index 000000000..c0cf238bb
--- /dev/null
+++ b/robinhood/robinhood-chain-examples/examples/13-launch-a-coin-testnet/package-lock.json
@@ -0,0 +1,267 @@
+{
+ "name": "rh-example-13-launch-a-coin-testnet",
+ "version": "0.1.0",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "rh-example-13-launch-a-coin-testnet",
+ "version": "0.1.0",
+ "dependencies": {
+ "hood-launcher": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/@adraffy/ens-normalize": {
+ "version": "1.11.1",
+ "resolved": "https://registry.npmjs.org/@adraffy/ens-normalize/-/ens-normalize-1.11.1.tgz",
+ "integrity": "sha512-nhCBV3quEgesuf7c7KYfperqSS14T8bYuvJ8PcLJp6znkZpFc0AuW4qBtr8eKVyPPe/8RSr7sglCWPU5eaxwKQ==",
+ "license": "MIT"
+ },
+ "node_modules/@noble/ciphers": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/@noble/ciphers/-/ciphers-1.3.0.tgz",
+ "integrity": "sha512-2I0gnIVPtfnMw9ee9h1dJG7tp81+8Ob3OJb3Mv37rx5L40/b0i7djjCVvGOVqc9AEIQyvyu1i6ypKdFw8R8gQw==",
+ "license": "MIT",
+ "engines": {
+ "node": "^14.21.3 || >=16"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
+ "node_modules/@noble/curves": {
+ "version": "1.9.1",
+ "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.9.1.tgz",
+ "integrity": "sha512-k11yZxZg+t+gWvBbIswW0yoJlu8cHOC7dhunwOzoWH/mXGBiYyR4YY6hAEK/3EUs4UpB8la1RfdRpeGsFHkWsA==",
+ "license": "MIT",
+ "dependencies": {
+ "@noble/hashes": "1.8.0"
+ },
+ "engines": {
+ "node": "^14.21.3 || >=16"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
+ "node_modules/@noble/hashes": {
+ "version": "1.8.0",
+ "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz",
+ "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==",
+ "license": "MIT",
+ "engines": {
+ "node": "^14.21.3 || >=16"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
+ "node_modules/@scure/base": {
+ "version": "1.2.6",
+ "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.2.6.tgz",
+ "integrity": "sha512-g/nm5FgUa//MCj1gV09zTJTaM6KBAHqLN907YVQqf7zC49+DcO4B1so4ZX07Ef10Twr6nuqYEH9GEggFXA4Fmg==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
+ "node_modules/@scure/bip32": {
+ "version": "1.7.0",
+ "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.7.0.tgz",
+ "integrity": "sha512-E4FFX/N3f4B80AKWp5dP6ow+flD1LQZo/w8UnLGYZO674jS6YnYeepycOOksv+vLPSpgN35wgKgy+ybfTb2SMw==",
+ "license": "MIT",
+ "dependencies": {
+ "@noble/curves": "~1.9.0",
+ "@noble/hashes": "~1.8.0",
+ "@scure/base": "~1.2.5"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
+ "node_modules/@scure/bip39": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.6.0.tgz",
+ "integrity": "sha512-+lF0BbLiJNwVlev4eKelw1WWLaiKXw7sSl8T6FvBlWkdX+94aGJ4o8XjUdlyhTCjd8c+B3KT3JfS8P0bLRNU6A==",
+ "license": "MIT",
+ "dependencies": {
+ "@noble/hashes": "~1.8.0",
+ "@scure/base": "~1.2.5"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
+ "node_modules/abitype": {
+ "version": "1.2.3",
+ "resolved": "https://registry.npmjs.org/abitype/-/abitype-1.2.3.tgz",
+ "integrity": "sha512-Ofer5QUnuUdTFsBRwARMoWKOH1ND5ehwYhJ3OJ/BQO+StkwQjHw0XyVh4vDttzHB7QOFhPHa/o413PJ82gU/Tg==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/wevm"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.0.4",
+ "zod": "^3.22.0 || ^4.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ },
+ "zod": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/eventemitter3": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz",
+ "integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==",
+ "license": "MIT"
+ },
+ "node_modules/hood-launcher": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/hood-launcher/-/hood-launcher-0.1.0.tgz",
+ "integrity": "sha512-UY0YTDTIUwW4/MOGNaP6szBytog7WEiYYZZVzmLhRF3ZAc2frSdguOA2rr/VcpIfzySsrrqL1L0vbIBCvHTb9A==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "hoodchain": "^0.1.0",
+ "viem": "^2.55.0",
+ "zod": "^3.24.0"
+ },
+ "bin": {
+ "hood-auto": "dist/cli-auto.js",
+ "hood-launch": "dist/cli.js"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/hoodchain": {
+ "version": "0.1.1",
+ "resolved": "https://registry.npmjs.org/hoodchain/-/hoodchain-0.1.1.tgz",
+ "integrity": "sha512-+9URZdPjo6dSZt+7iGWrS20ttTyuwsH8hBcyf44xqQI22kMqZIR4e1oQgoQHzoEYmJ6+2NgDy2nQppypucPfBA==",
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=20"
+ },
+ "peerDependencies": {
+ "viem": "^2.55.0",
+ "ws": "^8.18.0"
+ },
+ "peerDependenciesMeta": {
+ "ws": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/isows": {
+ "version": "1.0.7",
+ "resolved": "https://registry.npmjs.org/isows/-/isows-1.0.7.tgz",
+ "integrity": "sha512-I1fSfDCZL5P0v33sVqeTDSpcstAg/N+wF5HS033mogOVIp4B+oHC7oOCsA3axAbBSGTJ8QubbNmnIRN/h8U7hg==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/wevm"
+ }
+ ],
+ "license": "MIT",
+ "peerDependencies": {
+ "ws": "*"
+ }
+ },
+ "node_modules/ox": {
+ "version": "0.14.33",
+ "resolved": "https://registry.npmjs.org/ox/-/ox-0.14.33.tgz",
+ "integrity": "sha512-rooA/4o7bBof4Ge2VH/eovfNPb/AEEYyrNj03wggc55g5HZD8Pjs/OeWhttgjic3dDcqn0r29bDuvQEdTiUemQ==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/wevm"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "@adraffy/ens-normalize": "^1.11.0",
+ "@noble/ciphers": "^1.3.0",
+ "@noble/curves": "1.9.1",
+ "@noble/hashes": "^1.8.0",
+ "@scure/bip32": "^1.7.0",
+ "@scure/bip39": "^1.6.0",
+ "abitype": "^1.2.3",
+ "eventemitter3": "5.0.1"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/viem": {
+ "version": "2.55.10",
+ "resolved": "https://registry.npmjs.org/viem/-/viem-2.55.10.tgz",
+ "integrity": "sha512-Q9Ba+/ma81U2M5o5P2AQ7Ux8rTIwmCZvUcr8rKdQ22bV0IBFHllM2m5gWDP8hFaUN2nH2oW3QG44amRazflYNQ==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/wevm"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "@noble/curves": "1.9.1",
+ "@noble/hashes": "1.8.0",
+ "@scure/bip32": "1.7.0",
+ "@scure/bip39": "1.6.0",
+ "abitype": "1.2.3",
+ "isows": "1.0.7",
+ "ox": "0.14.33",
+ "ws": "8.21.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.0.4"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/ws": {
+ "version": "8.21.0",
+ "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.0.tgz",
+ "integrity": "sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=10.0.0"
+ },
+ "peerDependencies": {
+ "bufferutil": "^4.0.1",
+ "utf-8-validate": ">=5.0.2"
+ },
+ "peerDependenciesMeta": {
+ "bufferutil": {
+ "optional": true
+ },
+ "utf-8-validate": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/zod": {
+ "version": "3.25.76",
+ "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz",
+ "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/colinhacks"
+ }
+ }
+ }
+}
diff --git a/robinhood/robinhood-chain-examples/examples/13-launch-a-coin-testnet/package.json b/robinhood/robinhood-chain-examples/examples/13-launch-a-coin-testnet/package.json
new file mode 100644
index 000000000..fa20ef85a
--- /dev/null
+++ b/robinhood/robinhood-chain-examples/examples/13-launch-a-coin-testnet/package.json
@@ -0,0 +1,16 @@
+{
+ "name": "rh-example-13-launch-a-coin-testnet",
+ "version": "0.1.0",
+ "private": true,
+ "type": "module",
+ "description": "Launch a memecoin on Robinhood Chain testnet through hood-launcher: concept, live preflight, then a real broadcast when a funded key is present.",
+ "scripts": {
+ "start": "node index.js"
+ },
+ "engines": {
+ "node": ">=20"
+ },
+ "dependencies": {
+ "hood-launcher": "^0.1.0"
+ }
+}
diff --git a/robinhood/robinhood-chain-examples/tools/build-docs.mjs b/robinhood/robinhood-chain-examples/tools/build-docs.mjs
index 85c570f38..277860dc7 100644
--- a/robinhood/robinhood-chain-examples/tools/build-docs.mjs
+++ b/robinhood/robinhood-chain-examples/tools/build-docs.mjs
@@ -30,6 +30,11 @@ const marked = new Marked(
}),
)
+// Example pages are written two levels deep (docs/examples/<id>/index.html),
+// so their path back to the docs root is `../../`, not `../`. Getting this
+// wrong loads no stylesheet at all and the page renders unstyled.
+const rootPrefix = (active) => (active === 'home' ? '' : '../../')
+
const page = ({ title, description, active, body }) => `<!doctype html>
<html lang="en">
<head>
@@ -37,12 +42,12 @@ const page = ({ title, description, active, body }) => `<!doctype html>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>${title} · Robinhood Chain Examples</title>
<meta name="description" content="${description}" />
- <link rel="stylesheet" href="${active === 'home' ? '' : '../'}style.css" />
- <link rel="stylesheet" href="${active === 'home' ? '' : '../'}hljs-theme.css" />
+ <link rel="stylesheet" href="${rootPrefix(active)}style.css" />
+ <link rel="stylesheet" href="${rootPrefix(active)}hljs-theme.css" />
</head>
<body>
<div class="topbar">
- <a class="brand" href="${active === 'home' ? '.' : '..'}/index.html">Robinhood Chain Examples</a>
+ <a class="brand" href="${rootPrefix(active) || './'}index.html">Robinhood Chain Examples</a>
<a class="ghlink" href="https://github.com/nirholas/robinhood-chain-examples">GitHub ↗</a>
</div>
<div class="wrap">${body}</div>