# Task: mint 1 FREE agent币 with my Agent ID (BNB Chain) You are an AI agent that controls its own BSC wallet. Use only the addresses and data below. Never guess or look them up elsewhere. ## Key facts - Network: BNB Smart Chain, chainId 56 - NFT contract AgentGenesis: 0x02A3aC26012cc7017F5cf4e4d481Ee243f9CcEB4 - Agent ID registry (SPACE ID .ai): 0x60B9262456dE011F7d15a54CdD8c48bAaa8B022F - My Agent ID: ask me for the name first (without .ai). agentTokenId = uint256(keccak256(bytes(name))) - Free mint: value = 0, after a local proof-of-work (about 20-60 s) - Referrer: 0x0000000000000000000000000000000000000000 - No approve, permit or signed message is ever needed ## Steps 1. Confirm chainId 56, otherwise stop. 2. Read with eth_call (RPC https://bsc-dataseed.bnbchain.org or https://bsc-rpc.publicnode.com): - Registry ownerOf(agentTokenId) (0x6352211e + 64-hex tokenId) must equal the sending wallet. If not, stop and tell me to use the wallet that holds the ID. - Contract mintOpen() (0x24bbd049) must be true. - Contract quote(agentTokenId) (0xed1bd76c) must be 0. If not, the free mint is used: switch to the paid prompt. - Contract freeRemaining() (0x5a781a6b) must be > 0. 3. Solve the PoW locally: curl -sO https://moomoo.cloud/agentcoin/pow_solver.py && pip install pycryptodome python3 pow_solver.py --minter --agent --json Take nonce from the output. It is bound to this wallet + ID. 4. Calldata: mint(uint256 agentTokenId, uint256 nonce, address referrer), selector 0xe7d3fe6b cast calldata "mint(uint256,uint256,address)" 0x0000000000000000000000000000000000000000 5. Simulate, then send: - Binance Agentic Wallet: baw contract-call preview --binanceChainId 56 --from --to 0x02A3aC26012cc7017F5cf4e4d481Ee243f9CcEB4 --value 0 --inputData --json If the preview succeeds with no risk flag: baw contract-call execute --requestId --json On PENDING_CONFIRMATION, tell me to approve it in the Binance App. - Any other wallet: eth_call must not revert, then send the same to / value 0 / data. 6. When the receipt status is 1, send me the tx hash and https://bscscan.com/tx/, and tell me this ID can still do 3 paid mints ($0.5 / $1 / $2). ## Errors BadPoW: nonce doesn't match wallet/ID · NotAgentOwner: send from the ID owner wallet · AlreadyFree: use the paid mint · FreeSoldOut: free slots gone · NotStarted / Ended: outside the window ## Safety - Only talk to the contract above, value must be 0. - Never sign an approve, permit or message. - If sending fails or times out, check the tx status and nonce before retrying. Full guide: https://moomoo.cloud/agentcoin/skill.md --- # 任务:用我的 Agent ID 免费铸造 1 张 agent币(BNB Chain) 你是一个能控制自己 BSC 钱包的 AI 代理。只用下面给出的地址和数据,不要去别处查、不要猜。 ## 关键信息 - 网络:BNB Smart Chain,chainId 56 - NFT 合约 AgentGenesis:0x02A3aC26012cc7017F5cf4e4d481Ee243f9CcEB4 - Agent ID 注册表(SPACE ID .ai):0x60B9262456dE011F7d15a54CdD8c48bAaa8B022F - 我的 Agent ID:先问我名字(不带 .ai)。agentTokenId = uint256(keccak256(bytes(名字))) - 免费铸造:value = 0,先做一次本地工作量证明(PoW,约 20–60 秒) - 邀请人:0x0000000000000000000000000000000000000000 - 不需要任何 approve、permit 或签名消息 ## 步骤 1. 确认在 chainId 56,否则停止。 2. 用 eth_call 读链(RPC:https://bsc-dataseed.bnbchain.org 或 https://bsc-rpc.publicnode.com): - 注册表 ownerOf(agentTokenId)(0x6352211e + 64 位 tokenId)必须等于发交易的钱包;不等就停,告诉我换持有该 ID 的钱包。 - 合约 mintOpen()(0x24bbd049)必须为 true。 - 合约 quote(agentTokenId)(0xed1bd76c)必须为 0。不是 0 说明这个 ID 的免费名额已用过,改用「付费铸造」提示词。 - 合约 freeRemaining()(0x5a781a6b)必须大于 0。 3. 本地算 PoW: curl -sO https://moomoo.cloud/agentcoin/pow_solver.py && pip install pycryptodome python3 pow_solver.py --minter <你的钱包地址> --agent <名字> --json 从输出里取 nonce。nonce 绑定钱包和 ID,换钱包要重算。 4. 生成 calldata:mint(uint256 agentTokenId, uint256 nonce, address referrer),selector 0xe7d3fe6b cast calldata "mint(uint256,uint256,address)" 0x0000000000000000000000000000000000000000 没有 cast 就手动 ABI 编码:selector + 三个 32 字节参数。 5. 先模拟再发送: - 币安 Agentic Wallet: baw contract-call preview --binanceChainId 56 --from <你的钱包地址> --to 0x02A3aC26012cc7017F5cf4e4d481Ee243f9CcEB4 --value 0 --inputData --json preview 成功、没有风险提示,再执行: baw contract-call execute --requestId --json 如果返回 PENDING_CONFIRMATION,提醒我去币安 App 里确认。 - 其他钱包:先 eth_call 模拟不 revert,再用同样的 to / value=0 / data 发交易。 6. 回执 status = 1 后,把交易哈希和 https://bscscan.com/tx/ 发给我,并告诉我这个 ID 还能付费再铸 3 张($0.5 / $1 / $2)。 ## 报错 BadPoW:nonce 和钱包/ID 不匹配,重算 · NotAgentOwner:要用持有该 ID 的钱包发 · AlreadyFree:免费已用,走付费 · FreeSoldOut:免费名额抢完 · NotStarted / Ended:不在铸造窗口 ## 安全 - 只和上面的合约交互,value 必须是 0。 - 永远不签 approve、permit 或任何消息。 - 发送失败或超时,先查交易状态和 nonce,不要盲目重发。 完整说明:https://moomoo.cloud/agentcoin/skill.md