跳至內容
0%

在 Arc Chain 上發行 memecoin

發布於 2026年9月21日閱讀時間 3 分鐘

在 Arc Chain 上發行迷因幣

Arc 是 Circle 為 stablecoin 金融設計的 blockchain,創始 validators 包括 BlackRock、Visa 和 Mastercard。但這些都不代表它是私人俱樂部。這條 chain 對開發者開放且無需許可,mainnet 已經上線,並用 stablecoin 作為 gas,從 USDC 開始。任何人都可以在上面部署任何東西,過程中每一筆費用都以美元計價。

Arc 上的迷因幣就是一份標準的 ERC-20,只是 gas 以 USDC 計價。合約的運作方式跟在任何 EVM chain 上完全一樣,所以你可以用 Foundry 花大約二十分鐘自己部署一份,也可以把整個流程交給 coding agent。以下兩種方式都有介紹,包含一段可直接複製貼上的提示詞,讓任何能執行 shell 指令的智能體都能用 Alchemy CLI 完成發行流程。與你過去每一次發行真正不同的只有 gas token:你要用 USDC 而不是 ETH 為部署者錢包注資。

什麼是 Arc?

Arc 是 Circle(USDC 的發行方)打造的 Layer-1 blockchain,為 stablecoin 支付與金融而設計。它相容 EVM,用 USDC 作為原生 gas token,並在一秒內達到確定性最終性。它的 validators 是一組許可制的金融機構,但在上面部署合約完全不需要許可。我們的《什麼是 Arc》說明更深入介紹這條 chain 的設計,包括移植合約時可能出問題的地方。

Arc mainnet 已在 Alchemy 上線,提供 RPC 與 WebSockets、Debug API、Bundler API,以及面向 smart-account 流程的 gas sponsorship。各 endpoint 列在 Arc chain 頁面上。

如果你曾經部署過 Ethereum、Base 或 Arbitrum,這裡的工具不會讓你感到意外。Solidity、Foundry 和 viem 無需改動即可使用。差異在於你用什麼為錢包注資,以及這條 chain 如何確認交易。

當 gas 是 USDC 時,有什麼不同?

Arc 沒有波動的 gas token,所以一般發行檢查清單中有三個部分的行為會不一樣:

  • 你用 USDC 而不是 ETH 為部署者注資。 USDC 透過 Circle 的 cross-chain transfer protocol CCTP v2,從任何受支援的 chain 以原生資產進入 Arc。如果你想用腳本處理,Bridge Kit 會把 burn-attest-mint 流程包成一次呼叫。
  • 費用以美元計價,而且很低。 base fee 的目標是每筆大約一分錢,並且它對照近期使用率的平滑值調整,而不是逐區塊重算,所以發行日的流量高峰不會像 Ethereum gas 拍賣那樣把費用推高。你可以在開始之前,就用美元編列整場發行的預算。
  • 交易在一秒內最終確認。 Arc 執行 BFT 共識引擎,從構造上不會重組。一筆買入要麼 pending,要麼 final,這表示交易你代幣的人不需要任何確認次數啟發式,發行日也不會有 reorg 爭議。

有一個行為值得在發行前先了解。USDC blocklist 在協議層執行,所以任何碰到被列入 blocklist 位址的 transfer 都會 revert。這適用於一筆 swap 的 USDC 那一腿,而不是你的代幣合約本身,但這和 blocklist 只存在於 token 合約內部的那些 chain 不一樣。

如何部署代幣?

在任何動作觸及 chain 之前,你需要三樣東西:

  • 一個有資金的錢包。 Gas 以 USDC 支付,透過 CCTP 橋接進來,或從支援 Arc 的交易所提領
  • 代幣合約。 對迷因幣來說,最小化的固定供應量 ERC-20 是標準做法。我們的《Solidity 中的 ERC-20 標準指南》說明了每個函式的作用。
  • 一個 RPC endpoint。dashboard 建立一個免費 app 並選擇 Arc。

合約本身很短。固定供應量、沒有 mint 函式、沒有 owner,所以合約不會給部署者任何日後可以濫用的特殊權限。不過全部供應量仍會進入部署者錢包,發行之後這些代幣的去向會在下文說明:

solidity
Copied
// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol"; contract Penny is ERC20 { constructor() ERC20("Penny", "PENNY") { _mint(msg.sender, 1_000_000_000 * 10 ** decimals()); } }

把這份合約存成 src/Penny.solforge init 會建立一個 Counter.sol,你可以刪掉它),然後用 Foundry 部署:

bash
Copied
forge init penny && cd penny forge install OpenZeppelin/openzeppelin-contracts # paste the contract above into src/Penny.sol, then import your deployer key once cast wallet import deployer --interactive forge create src/Penny.sol:Penny \ --rpc-url https://arc-mainnet.g.alchemy.com/v2/$ALCHEMY_API_KEY \ --account deployer \ --broadcast

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

部署之後會發生什麼?

已部署的合約只是一個沒人能買到的代幣。等你注入流動性池、開始分發供應量之後,這次發行才算真正成立。Uniswap 和 Aerodrome 都已在 Arc 上線,而在 Arc 上,最自然的交易對是你的代幣對 USDC,也就是這條 chain 上每個人為了付 gas 本來就持有的資產。

買家也會在這個階段評估你。有經驗的迷因幣交易者,在碰一個代幣之前,會先確認供應量是否固定、流動性是否被鎖定,以及部署者錢包持有多少比例。Arc 改變了這套儀式的其中一環:最終性是確定的,所以交易後一秒你讀回的任何狀態都已經結算完成,rug 沒有可以躲藏的 pending 視窗。

智能體能替你發行代幣嗎?

以上每一步都可以寫成腳本,這正適合交給 coding agent。Alchemy CLI 就是為此打造的。每個指令都支援 --json --no-interactive,方便智能體解析輸出,而 agent wallets 則提供一個範圍受限的簽署 session,取代原始私鑰。這套流程適用於任何能執行 shell 指令的智能體:Claude Code、Cursor、基於 OpenAI 的智能體,或是你自己寫的腳本都可以。Claude Code 使用者還有捷徑:Alchemy 外掛可以用一道指令安裝 CLI 的技能與 MCP server。

關於分工,有一點要老實說明。CLI 沒有部署指令,所以智能體會透過 Foundry、對著你的 Alchemy endpoint 執行部署,而所有讀取狀態的工作,像是檢查餘額、拉取收據、讀取合約狀態,則交給 CLI 處理。簽署是最需要弄對的部分。全部供應量會 mint 到部署合約的那個 Foundry keystore 帳戶,所以第一次分發也由同一個帳戶簽署,而 agent wallet session 則負責任何會動用資金的 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 Arc 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 arc-mainnet is available with `alchemy evm network list`. - Everything that moves funds signs with my Foundry keystore account. Get the deployer address with `cast wallet address --account deployer`. If no keystore account exists, stop and tell me to run `cast wallet import` first. - Check the deployer's balance on arc-mainnet with `alchemy evm data balance <deployer-address>`. Gas on Arc is paid in USDC, not ETH. If the balance cannot cover gas, stop and tell me how much USDC to bridge in. - Write a fixed-supply ERC-20 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 arc-mainnet endpoint, signing with `--account deployer`. Never pass a raw private key on the command line. - Verify the launch: pull the receipt with `alchemy evm receipt`, then read the name, symbol, and total supply back with `alchemy evm contract read`. - The full supply mints to the deployer, so the first distribution comes from the keystore too. Ask me which wallet gets it and how much. The token has 18 decimals, so convert the amount I give you to base units with `cast to-wei` before building the command. Then show me the exact `cast send <token> "transfer(address,uint256)" <recipient> <amount-in-base-units> --rpc-url <my Alchemy arc-mainnet endpoint> --account deployer` command, and wait for my approval before running it. 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 上持有一個有真實 USDC 資金的錢包時,這道核准關卡正是「預覽」和「真正上鏈的交易」之間的差別。

開始在 Arc 上建構

Arc endpoint 已在我們的免費方案上線。在 dashboard 建立一個 app、選擇 Arc,你第一天就能拿到 mainnet endpoint。沒有合約、沒有 waitlist、沒有最低承諾。如果你走的是智能體這條路,Alchemy CLI 能讓你在幾分鐘內,從安裝走到一筆已簽署的 mainnet 交易。

Circle 為 stablecoin 金融設計了 Arc,並找來銀行與信用卡網路擔任 validators。部署無需許可,意味著這條 chain 會運行人們帶來的任何東西,而第一波永遠少不了迷因幣。

Background gradient

打造區塊鏈魔法

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