插入项目
mplx cm insert 命令将缓存文件中的上传资产插入链上 candy machine,使其可用于铸造。它具有智能加载检测、高效的批处理和详细的交易跟踪。
用法
# 从当前 candy machine 目录插入项目
mplx cm insert
# 从特定 candy machine 目录插入项目
mplx cm insert <directory>
要求
在运行插入命令之前,请确保您具有:
- 资产缓存: 带有上传 URI 的有效
asset-cache.json - Candy Machine: 在缓存中创建的带有 ID 的 candy machine
- 钱包余额: 足够的 SOL 用于交易费用
- 网络访问: 稳定的 Solana 网络连接
前置条件
# 1. 必须创建 candy machine
mplx cm create
# 2. 上传资产
mplx cm upload
# 3. 然后插入项目
mplx cm insert
相关命令
mplx cm upload- 上传资产(插入前必需)mplx cm create- 创建 candy machine(插入前必需)mplx cm validate- 验证缓存和上传mplx cm fetch- 验证插入状态
