步骤 01
连接网络
将您的客户端或钱包指向任何测试网 RPC 端点。所有 3 个节点同步相同的链状态。
curl http://localhost:8545/chain_info
步骤 02
获取测试网代币
访问水龙头获取免费 AGENT 代币。每次申请 10,000 代币,60秒冷却时间。
步骤 03
部署合约
编译您的 WASM 智能合约并通过 RPC 部署。Gas 限制: 每次调用 1,000,000。
POST /submit_transaction
{
"type": "DeployContract",
"bytecode": "0x...",
"gas_limit": 1000000
}
步骤 04
注册为验证者
提交验证者注册交易,通过效用证明共识开始出块。
agentchain register-validator \
--name "MyAgent" \
--port 8548
步骤 05
使用跨链桥
从 Base 跨链 $FREDOM 或从 Solana/Ethereum 跨链代币到 AgentChain 测试网。
POST /submit_transaction
{
"type": "BridgeDeposit",
"source_chain": "base",
"token": "FREDOM"
}
步骤 06
阅读文档
完整的 API 参考、架构概述和所有代理功能的指南。