在 Robinhood Chain 上发行一个 memecoin
作者 Uttam Singh

Robinhood 构建这条链是为了代币化股票,但部署是无需许可的,所以任何人都可以在上面发布任何东西。主网于 2026 年 7 月 1 日上线,两周内链上 DEX 交易量从约 20 万美元跃升至超过 5 亿美元,其中以 CASHCAT 等 meme 代币为主。
一个 memecoin 就是一个带故事的 ERC20 合约。合约是简单的那一半,在 Robinhood Chain 上,它的运作方式与在任何 EVM 链上完全一样。你可以用 Foundry 花大约二十分钟自己部署一个,也可以把整个流程交给一个编码 agent 完成。下面提供两种路径,包括一个可直接复制粘贴的 prompt,让任何能运行 shell 命令的 agent 用 Alchemy CLI 完成发布。
什么是 Robinhood Chain?
Robinhood Chain 是一条基于 Arbitrum Orbit 技术栈构建的 Ethereum layer 2,由 Robinhood 运营,专为代币化的现实世界资产设计。它结算到 Ethereum,用 ETH 支付 gas,运行在 chain ID 4663 上。它完全兼容 EVM,部署无需许可。
Robinhood Chain 主网已在 Alchemy 上线,提供 RPC 和 WebSockets、webhooks、gas 赞助以及 Data API。相关端点见 Robinhood Chain 页面。
如果你之前部署过 Ethereum、Arbitrum 或 Base,这里的一切都不会让你感到意外。同样的工具,同样的字节码,只是 chain ID 不同。
如何部署代币?
在触碰链之前,你需要三样东西:
- 一个有资金的钱包。 Gas 以 ETH 支付
- 代币合约。 对于 memecoin,最小化的固定供应量 ERC20 是标准形式。我们的《Solidity 中的 ERC-20 标准》指南介绍了每个函数的作用。
- 一个 RPC 端点。 在控制台中创建一个免费 app 并选择 Robinhood Chain。Robinhood Chain API 快速入门介绍了第一次调用的流程。
合约本身很简短。固定供应量,没有铸造函数,没有 owner,因此以后不存在被 rug 的可能:
// SPDX-License-Identifier: MIT
import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract Bagel is ERC20 {
constructor() ERC20("Bagel", "BAGEL") {
_mint(msg.sender, 1_000_000_000 * 10 ** decimals());
}
}将该合约保存为 src/Bagel.sol(forge init 会搭建一个可以删除的 Counter.sol),然后用 Foundry 部署它:
forge init bagel && cd bagel
forge install OpenZeppelin/openzeppelin-contracts
# paste the contract above into src/Bagel.sol, then import your deployer key once
cast wallet import deployer --interactive
forge create src/Bagel.sol:Bagel \
--rpc-url https://robinhood-mainnet.g.alchemy.com/v2/$ALCHEMY_API_KEY \
--account deployer \
--broadcast最后这条命令会将合约部署上主网。cast wallet import 把密钥存储在一个加密的 keystore 中,--account 在部署时用密码解锁它,这样原始密钥就不会出现在你的 shell 历史记录或进程列表中。如果你想看链团队自己的版本,Robinhood 也发布了他们自己的 Foundry 部署教程。
部署之后会发生什么?
一个已部署的合约只是一个没人能买到的代币。当你在链上已经上线的某个 DEX 上注入流动性池并开始分发供应量时,发布才算真正开始。这也是买家评判你的地方。经验丰富的 memecoin 交易者会在碰代币之前,检查供应量是否固定、流动性是否被锁定,以及部署者钱包持有多少份额。
Agent 能替你完成代币发布吗?
上面的每一步都是可脚本化的,这让它天然适合交给编码 agent 来做。Alchemy CLI 正是为此而生。每个命令都支持 --json --no-interactive,方便 agent 解析输出,而agent 钱包则为它提供一个受限范围的会话用于签名,而不是使用原始私钥。这适用于任何能运行 shell 命令的 agent,无论是 Claude Code、Cursor、基于 OpenAI 的 agent,还是你自己写的脚本。Claude Code 用户还有一个捷径:Alchemy plugin 可以用一条命令安装 CLI 的 skills 和 MCP server。
关于分工,有一点需要说清楚。CLI 没有部署命令,因此 agent 通过 Foundry 针对你的 Alchemy 端点执行部署,其余所有工作——检查余额、拉取回执、读取合约、转移代币——都用 CLI 完成。这两部分的签名方式不同,而且这一点很重要:合约创建通过你的 Foundry keystore 账户完成,而 CLI 步骤则用 agent 钱包会话签名。在把 prompt 交给 agent 之前先设置好 keystore,否则 agent 走到部署这一步时会没有可用的密钥。
用 npm i -g @alchemy/cli 安装 CLI,然后把这个 prompt 交给你的 agent。它会在写下第一行 Solidity 代码之前,先向你询问代币的细节:
You have the Alchemy CLI and Foundry installed. Run `alchemy --json --no-interactive agent-prompt` first to load the CLI's command contract, then launch a memecoin for me on Robinhood Chain mainnet.
Start by asking me for:
- The token name and ticker symbol
- The total supply
- A logo image, and wait for me to upload the file before continuing
Do not invent any of these. Wait for my answers, then confirm them back to me before you write any code.
Once I have confirmed:
- Check that robinhood-mainnet is available with `alchemy evm network list`.
- Check my wallet with `alchemy wallet status`, then check its ETH balance on robinhood-mainnet with `alchemy evm data balance`. If it cannot cover gas, stop and tell me how much to fund.
- Write a fixed-supply ERC20 using the name, symbol, and supply I gave you, with no mint function and no owner, and deploy it with `forge create` against my Alchemy robinhood-mainnet endpoint, signing with my Foundry keystore account via `--account`. Never pass a raw private key on the command line. If no keystore account exists, stop and tell me to run `cast wallet import` first.
- Verify the launch: pull the receipt with `alchemy evm receipt`, then read the name, symbol, and total supply back with `alchemy evm contract read`.
- Ask me which wallet gets the first distribution, then send 1% of supply with `alchemy evm send --token <address>` using `--dry-run` first. Show me the preview and wait for my approval before the real send.
The logo never goes onchain. Keep the file path and hand it back to me for the block explorer and token list submissions once the contract is live.
Ask before every transaction that spends funds.这个 prompt 中没有任何内容是针对某个特定 agent 产品的,因为实际工作都由 CLI 和 Foundry 完成。关于把 agent 与钱包、链上数据连接起来的更深入模式,可以参考我们的构建链上 agent 指南。
这个 prompt 让每一个不可逆的操作都需要经过你的批准。当一个 agent 持有主网上有资金的钱包时,这种先 dry-run 再批准的机制,正是预览操作和真实链上交易之间的区别。
开始在 Robinhood Chain 上构建
Robinhood Chain 端点已在我们的免费套餐上线。在控制台中创建一个 app,选择 Robinhood Chain,你当天就能拿到一个主网端点。不需要合同,不需要排队等候,也没有最低使用要求。如果你选择 agent 路径,Alchemy CLI 能让你在几分钟内从安装走到签署一笔主网交易。
Robinhood 构建这条链是为了股票。它上线的头两周表明,它会运行人们在上面部署的任何东西。
相关概览

构建区块链应用
Alchemy 将最强大的 Web3 开发者产品和工具与资源、社区及专业支持结合在一起。


