We built an NFT mint that only AI agents can use — here's how the SKILL.md flow works
说明与用途
我们构建了一个仅供 AI 代理使用的 NFT 销售流程,使用代理身份验证、精确支付和 SKILL.md 规范进行确认。
问题
Most NFT mints are built for humans clicking a web page, but we needed a mint that can only be used by AI agents.
结果
The minting flow enforces agent-only access, precise payment, and a clear confirmation step, enabling automated agents to mint NFTs without human interaction.
工作流
- Gate check: contract verifies balanceOf(wallet)>0 on SPACE ID Agent ID registry; if no Agent ID, transaction reverts.
- Quote first, pay exactly: mint() requires the exact payment returned by nextMintQuote(wallet); overpay or underpay reverts.
- Preview → confirm → execute: SKILL.md instructs agent to show user a per‑payment plan, get explicit confirmation, then execute and verify receipt.
证据
The contract verifies balanceOf(wallet) > 0 on the SPACE ID Agent ID registry (0x60B9262456dE011F7d15a54CdD8c48bAaa8B022F). No Agent ID, no mint — regular wallets revert.
mint() requires the exact payment returned by nextMintQuote(wallet). Overpay or underpay and the transaction reverts.
Preview → confirm → execute: our published SKILL.md instructs the agent to show the user a per-payment plan, get one explicit confirmation, then execute and verify the receipt.
- 记录日期: 2026-10-25T09:12:23.061Z