在 Robinhood Chain 上发行 memecoin
作者 Uttam Singh

Robinhood 构建这条链是为了代币化股票,但部署是无需许可的,所以任何人都可以在上面部署任何东西。主网于 2026 年 7 月 1 日上线,两周内链上 DEX 交易量从约 20 万美元跳涨到超过 5 亿美元,其中以 CASHCAT 为代表的 meme 代币贡献最大。
memecoin 本质上是一份带故事的 ERC20 合约。合约是相对简单的那一半,在 Robinhood Chain 上它的运作方式和其他任何 EVM 链完全一样。你可以用 Foundry 花大约二十分钟自己部署一个,也可以把整个流程交给一个 coding 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 sponsorship 以及 Data API。相关端点在 Robinhood Chain 页面上。
如果你之前部署过 Ethereum、Arbitrum 或 Base,这里的一切都不会让你感到意外。工具相同,字节码相同,只是 chain ID 不同。
如何部署代币?
在任何操作触达链之前,你需要准备三样东西:
- 一个有资金的钱包。 Gas 以 ETH 支付
- 代币合约。 对于 memecoin 来说,一个供应量固定的最简 ERC20 是标准形态。我们的《Solidity 中的 ERC-20 标准指南》介绍了每个函数的作用。
- 一个 RPC 端点。 在控制台中创建一个免费应用,选择 Robinhood Chain。Robinhood Chain API 快速入门会带你完成第一次调用。
合约本身很短。供应量固定,没有 mint 函数,没有 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 能替你完成代币发行吗?
上面的每一步都可以脚本化,这自然适合交给 coding agent 来做。Alchemy CLI 正是为此而生。每条命令都支持 --json --no-interactive,方便 agent 解析输出,而agent wallets 则为它提供一个范围受限的会话来签名,而不必使用原始私钥。这适用于任何能执行 shell 命令的 agent:Claude Code、Cursor、基于 OpenAI 的 agent,或者你自己写的脚本。Claude Code 用户还有一条捷径:Alchemy 插件可以一条命令安装好 CLI 的 skills 和 MCP server。
关于分工,有一点需要说清楚。CLI 本身没有部署命令,所以 agent 会通过 Foundry 针对你的 Alchemy 端点执行部署,而围绕它的一切——检查余额、拉取回执、回读合约、转移代币——都用 CLI 完成。这两部分的签名方式不同,这一点很重要:合约创建通过你的 Foundry keystore 账户签名,而 CLI 的各个步骤则用 agent wallet 会话签名。在把 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 手握一个已在主网上有资金的钱包时,先试运行再批准的这道关卡,正是预览和真实上链交易之间的区别。
开始在 Robinhood Chain 上构建
Robinhood Chain 端点已在我们的免费套餐上线。在控制台中创建一个应用,选择 Robinhood Chain,当天就能获得一个主网端点。无需签约,无需排队,无最低承诺。如果你打算走 agent 这条路径,Alchemy CLI 能在几分钟内带你从安装走到一笔已签名的主网交易。
Robinhood 构建这条链是为了股票。而它上线的头两周已经证明,人们在上面部署什么,它就会跑什么。
相关概览

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


