name: warren-deploy description: Deploy websites and files permanently on MegaETH mainnet using SSTORE2. Agents use their own wallet and pay gas. metadata: {"openclaw":{"emoji":"⛓️","homepage":"https://thewarren.app","source":"https://github.com/planetai87/warren-tools","requires":{"anyBins":["node"],"env":["PRIVATE_KEY"]},"primaryEnv":"PRIVATE_KEY"}} user-invocable: true
小葱技能站7w4.net,专业的AI技能分享平台。
Deploy websites and files permanently on MegaETH mainnet.
Network: MegaETH Mainnet (Chain ID: 4326)
RPC: https://mainnet.megaeth.com/rpc
Explorer: https://megaeth.blockscout.com
cd {baseDir}
bash setup.sh
| Contract | Address |
|---|---|
| Genesis Key NFT (0xRabbitNeo) | 0x0d7BB250fc06f0073F0882E3Bf56728A948C5a88 |
| 0xRabbit.agent Key NFT | 0x3f0CAbd6AB0a318f67aAA7af5F774750ec2461f2 |
| MasterNFT Registry | 0xf299F428Efe1907618360F3c6D16dF0F2Bf8ceFC |
You need a wallet with real ETH on MegaETH mainnet for gas fees.
Set your private key:
export PRIVATE_KEY=0xYourPrivateKey
The deploy script checks access in this order:
Default RABBIT_AGENT_ADDRESS: 0x3f0CAbd6AB0a318f67aAA7af5F774750ec2461f2 (override via env).
If you override or unset it, mint a human key manually at:
| Variable | Required | Default | Purpose |
|---|---|---|---|
PRIVATE_KEY |
Yes | — | Wallet private key for signing transactions |
RPC_URL |
No | https://mainnet.megaeth.com/rpc |
MegaETH RPC endpoint |
CHAIN_ID |
No | 4326 |
MegaETH mainnet chain ID |
GENESIS_KEY_ADDRESS |
No | 0x0d7B...5a88 |
Genesis Key NFT contract |
RABBIT_AGENT_ADDRESS |
No | 0x3f0C...61f2 |
0xRabbit.agent NFT contract |
MASTER_NFT_ADDRESS |
No | 0xf299...eFC |
MasterNFT registry contract |
CHUNK_SIZE |
No | 15000 |
Bytes per chunk (15KB) |
GROUP_SIZE |
No | 500 |
Max addresses per tree node |
cd {baseDir}
PRIVATE_KEY=0x... node deploy.js \
--html "<html><body><h1>Hello Warren!</h1></body></html>" \
--name "My First Site"
PRIVATE_KEY=0x... node deploy.js \
--file ./my-site.html \
--name "My Website"
echo "<h1>Hello</h1>" | PRIVATE_KEY=0x... node deploy.js --name "Piped"
--private-key <key> Wallet private key (or PRIVATE_KEY env)
--html <string> HTML content to deploy
--file <path> Path to file to deploy
--name <name> Site name (default: "Untitled")
--type <type> file|image|video|audio|script (default: "file")
{
"tokenId": 102,
"rootChunk": "0x019E5E...",
"depth": 0,
"url": "https://thewarren.app/v/site=102"
}
cd {baseDir}
for i in $(seq 1 5); do
HTML="<html><body><h1>Site #$i</h1><p>$(date)</p></body></html>"
PRIVATE_KEY=0x... node deploy.js --html "$HTML" --name "Site $i"
sleep 2
done
cd {baseDir}
PRIVATE_KEY=0x... node deploy.js --file ./my-site.html --name "Large Site"
https://thewarren.app/v/site={TOKEN_ID}
"No ETH balance" - Bridge ETH to MegaETH mainnet and retry.
"No Genesis Key found and RABBIT_AGENT_ADDRESS is not configured"
- Set RABBIT_AGENT_ADDRESS=0x3f0CAbd6AB0a318f67aAA7af5F774750ec2461f2, or mint human Genesis Key at https://thewarren.app/mint.
"RPC rate limit"
- The script retries automatically. Add sleep 5 between repeated deployments.
Site does not load immediately - Wait 10-30 seconds and retry the viewer URL.
CHUNK_SIZE=15000).RPC_URL (default: mainnet.megaeth.com/rpc). No other outbound connections.--file. No directory scanning or glob expansion.这个 Skill 质量扎实可靠,做得好的地方在于:使用说明非常详细、环境配置灵活、支持多种内容输入方式,且对隐私安全考虑周全。不足之处是首次使用需要运行安装脚本,部署大文件时速度受网络影响较明显,且如果遇到问题普通用户排查难度较大。整体而言,这是一个完成度较高、实用性强的链上部署工具,适合有一定技术基础的用户使用。