跳至內容
0%

在 Robinhood Chain 上發行 memecoin

發布於 2026年7月28日閱讀時間 2 分鐘

在 Robinhood Chain 上發行 memecoin

Robinhood 打造這條鏈是為了代幣化股票,但部署是無需許可的,所以任何人都能在上面發布任何東西。Mainnet 於 2026 年 7 月 1 日上線,兩週內該鏈上的 DEX 交易量從約 20 萬美元躍升至超過 5 億美元,由 CASHCAT 等迷因代幣帶動。

迷因幣就是一個帶有故事的 ERC20 合約。合約本身是簡單的那一半,在 Robinhood Chain 上的運作方式和任何 EVM 鏈完全一樣。你可以用 Foundry 花大約二十分鐘自己部署一個,也可以把整套流程交給程式碼代理處理。以下兩種方式都有介紹,包括一段可直接複製貼上的提示詞,讓任何能執行 shell 指令的代理都能用 Alchemy CLI 完成發布。

Robinhood Chain 是什麼?

Robinhood Chain 是一條建立在 Arbitrum Orbit 技術棧上的 Ethereum layer 2,由 Robinhood 營運,專為代幣化的真實世界資產設計。它結算至 Ethereum,用 ETH 支付 gas,運行於鏈 ID 4663。它完全相容於 EVM,且部署無需許可。

Robinhood Chain mainnet 已在 Alchemy 上線,支援 RPC 與 WebSockets、webhooks、gas 贊助,以及 Data API。端點都列在 Robinhood Chain 頁面上。

如果你之前部署過 Ethereum、Arbitrum 或 Base,這裡的一切都不會讓你感到陌生。同樣的工具、同樣的位元碼,只是鏈 ID 不同。

如何部署代幣?

在動手接觸鏈之前,你需要準備三樣東西:

  • 一個有資金的錢包。 Gas 用 ETH 支付
  • 代幣合約。 對迷因幣來說,最小化的固定供應量 ERC20 是標準做法。我們的Solidity ERC-20 標準指南說明了每個函式的作用。
  • 一個 RPC 端點。 在儀表板中建立一個免費 app 並選擇 Robinhood Chain。Robinhood Chain API 快速入門會帶你完成第一次呼叫。

合約本身很短。固定供應量、沒有 mint 函式、沒有 owner,之後也就沒有能被抽走的東西:

solidity
Copied
// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; 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 部署:

bash
Copied
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

最後那個指令會把合約部署到 mainnet 上線。cast wallet import 會把金鑰存進加密的 keystore,--account 則在部署時用密碼解鎖它,這樣原始金鑰就不會出現在你的 shell 歷史紀錄或程序清單中。如果你想看鏈方團隊自己的版本,Robinhood 也發布了他們自己的 Foundry 部署教學。

部署之後會發生什麼?

一個部署完成的合約,是一個沒人能買的代幣。當你在鏈上已經上線的某個 DEX 中注入流動性池並開始分發供應量時,這次發布才算真正開始。這也是買家評判你的地方。有經驗的迷因幣交易者會在出手前檢查供應量是否固定、流動性是否鎖定,以及部署者錢包持有多少比例。

代理可以幫你發布代幣嗎?

上面每一步都可以寫成腳本,這自然適合交給程式碼代理處理。Alchemy CLI 正是為此而打造。每個指令都帶有 --json --no-interactive,讓代理能解析輸出,而代理錢包則提供一個範圍受限的會話供其簽署,不需使用原始私鑰。這適用於任何能執行 shell 指令的代理,Claude Code、Cursor、基於 OpenAI 的代理,或你自己寫的腳本都可以。Claude Code 使用者有個捷徑:Alchemy 外掛可以一個指令安裝好 CLI 的技能和 MCP 伺服器。

關於分工,有一點要老實說明。CLI 沒有部署指令,所以代理是透過 Foundry 對接你的 Alchemy 端點來執行部署,其餘的一切都用 CLI 完成,包括檢查餘額、取得收據、讀取合約狀態、轉移代幣。這兩部分的簽署方式不同,這點很重要:合約建立要透過你的 Foundry keystore 帳號,而 CLI 的各個步驟則用代理錢包的會話來簽署。在把提示詞交出去之前,先設定好 keystore,否則代理走到部署那一步時會沒有可用的金鑰。

用 npm i -g @alchemy/cli 安裝 CLI,然後把這段提示詞交給你的代理。它會在寫任何一行 Solidity 之前,先向你詢問代幣的細節:

text
Copied
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.

這段提示詞不針對任何特定的代理產品,因為實際的工作都是由 CLI 和 Foundry 完成的。若想深入了解如何把代理接上錢包和鏈上資料,可參考我們的打造鏈上代理指南。

這段提示詞會把每個不可逆的操作都留在你批准之前。當一個代理在 mainnet 上持有一個有資金的錢包時,那道「先試跑再批准」的關卡,正是預覽和真實交易之間的差別。

開始在 Robinhood Chain 上開發

Robinhood Chain 端點已在我們的免費方案上線。在儀表板建立一個 app,選擇 Robinhood Chain,第一天就能拿到 mainnet 端點。不用簽合約、不用排隊、沒有最低承諾。如果你走代理這條路,Alchemy CLI 能讓你在幾分鐘內,從安裝走到一筆已簽署的 mainnet 交易。

Robinhood 打造這條鏈是為了股票。它上線的頭兩週已經證明了,人們在上面部署什麼,它就會運行什麼。

Background gradient

打造區塊鏈魔法

Alchemy 結合最強大的 Web3 開發者產品與工具,並提供資源、社群與卓越的支援。