闲社服务运行正常AI智能体自动化平台
s

超稀有铸造

技能标识:superrare-mint

Mint art to a SuperRare-compatible ERC-721 collection on Ethereum or Base via Bankr. Requires an explicit mint mode so aaigotchi can clearly choose between an artist-given collection and an own-deployed SR factory collection before minting.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 0.3.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

超稀有铸造

superrare-mint

使用Bankr签名将aaigotchi艺术品铸造到兼容SuperRare的ERC-721合约中。

必需的铸造模式

在铸造前,aaigotchi必须明确选择并声明以下模式之一:

  • - ownership-given

- 铸造到SuperRare艺术家已拥有或移交的现有收藏中
- 需要--contract或config.json中的collectionContract
  • - own-deployed

- 铸造到通过superrare-deploy部署的收藏中
- 需要superrare-deploy收据,可显式指定或自动解析

未指定合约模式时不得广播铸造。

脚本

  • - ./scripts/pin-metadata.mjs --name ... --description ... --image ... [--video ...] [--tag ...] [--attribute trait=value]
- 将媒体上传至SuperRare并固定元数据。 - 打印包含tokenUri和gatewayUrl的JSON。
  • - ./scripts/mint-via-bankr.sh --token-uri --contract-mode ownership-given|own-deployed [--contract
    ] [--deploy-receipt ] [--receiver
    ] [--royalty-receiver
    ] [--chain mainnet|sepolia|base|base-sepolia] [--broadcast]
- 为mintTo(string,address,address)或addNewToken(string)构建调用数据。 - 未明确合约模式时拒绝运行。 - 在任何广播前打印所选模式和收藏来源。 - 验证own-deployed收据是否与所选链匹配。 - 默认为模拟运行,除非传递--broadcast或设置DRY_RUN=0。 - 提交时不等待Bankr,直接轮询链获取收据。 - 成功广播后写入JSON收据。
  • - ./scripts/mint-art.sh --name ... --description ... --image ... --contract-mode ownership-given|own-deployed [options]
- 端到端封装:上传元数据,然后通过Bankr铸造。 - 使用--metadata-only可在固定后停止并打印代币URI。

配置

默认配置路径:

  • - 本技能目录中的config.json

可通过以下方式覆盖:

  • - SUPERRARECONFIG_FILE=/path/to/config.json

预期键值:

  • - chain:mainnet、sepolia、base或base-sepolia
  • contractMode:ownership-given或own-deployed
  • collectionContract
  • deployReceiptFile(superrare-deploy收据的可选显式路径)
  • receiver
  • royaltyReceiver
  • rpcUrl
  • apiBaseUrl
  • descriptionPrefix

默认与安全

  • - 默认为模拟运行。仅当使用--broadcast或DRY_RUN=0时才会广播铸造交易。
  • 支持的链为mainnet、sepolia、base和base-sepolia。
  • 广播模式使用较短的Bankr提交超时,然后直接等待链上收据,避免因长时间确认等待而挂起。
  • mint-art.sh在模拟铸造预览前仍会将媒体/元数据上传至SuperRare。如需在固定后停止并检查代币URI,请使用--metadata-only。
  • 如果未设置receiver和royaltyReceiver,技能将调用addNewToken(string)。
  • 如果提供了任一接收者字段,技能将调用mintTo(string,address,address)。
  • 如果仅设置了receiver或royaltyReceiver之一,另一个将默认为同一地址。
  • 成功广播会将收据写入receipts/目录。

部署收据自动解析

在own-deployed模式下,技能按以下顺序查找部署收据:

  1. 1. --deploy-receipt
  2. SUPERRAREDEPLOYRECEIPTFILE
  3. config.json中的deployReceiptFile
  4. 同级superrare-deploy/receipts/目录中的最新收据

解析到的部署收据必须与所选铸造链匹配。

Bankr API密钥解析

  1. 1. BANKRAPIKEY
  2. systemctl --user show-environment
  3. ~/.openclaw/skills/bankr/config.json
  4. ~/.openclaw/workspace/skills/bankr/config.json
  5. ~/.bankr/config.json

快速使用

bash
cp config.example.json config.json

./scripts/mint-via-bankr.sh \
--token-uri ipfs://... \
--contract-mode ownership-given \
--contract 0xYourArtistGivenCollection \
--broadcast

./scripts/mint-via-bankr.sh \
--token-uri ipfs://... \
--contract-mode own-deployed \
--chain base \
--deploy-receipt ../superrare-deploy/receipts/2026-03-15T00-00-00Z-superrare-deploy.json \
--broadcast

./scripts/mint-art.sh \
--name aaigotchi genesis #1 \
--description First aaigotchi genesis mint \
--image ./art.png \
--contract-mode own-deployed \
--chain base \
--broadcast

超时设置

可选环境变量:

  • - BANKRSUBMITTIMEOUTSECONDS(默认60)
  • RECEIPTWAITTIMEOUTSECONDS(默认300)
  • RECEIPTPOLLINTERVAL_SECONDS(默认5)

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 superrare-mint-1776101062 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 superrare-mint-1776101062 技能

通过命令行安装

skillhub install superrare-mint-1776101062

下载

⬇ 下载 superrare-mint v0.3.0(免费)

文件大小: 11.88 KB | 发布时间: 2026-4-15 14:33

v0.3.0 最新 2026-4-15 14:33
Support for Base and Base Sepolia added.

- Added chain support for Base mainnet and Base Sepolia testnet in addition to Ethereum.
- Scripts and config now accept `base` and `base-sepolia` as chain options.
- Auto-resolved `own-deployed` deploy receipts are now checked to ensure they match the selected chain.
- New optional environment variables for Base RPC URLs (`BASE_MAINNET_RPC`, `BASE_SEPOLIA_RPC`).
- Updated usage docs and config examples to reflect multi-chain support.
返回顶部