superrare-mint
Mint aaigotchi art into an existing SuperRare-compatible ERC-721 contract using Bankr signing.
Scripts
./scripts/pin-metadata.mjs --name ... --description ... --image ... [--video ...] [--tag ...] [--attribute trait=value]- Uploads media to SuperRare and pins metadata.
- Prints JSON including
tokenUriandgatewayUrl.
./scripts/mint-via-bankr.sh --token-uri <uri> [--contract <address>] [--receiver <address>] [--royalty-receiver <address>] [--chain mainnet|sepolia] [--broadcast]- Builds calldata for
mintTo(string,address,address)oraddNewToken(string). - Defaults to dry-run unless
--broadcastis passed orDRY_RUN=0. - Submits without waiting on Bankr, then polls chain directly for the receipt.
- Writes a JSON receipt on successful broadcast.
- Builds calldata for
./scripts/mint-art.sh --name ... --description ... --image ... [options]- End-to-end wrapper: upload metadata, then mint via Bankr.
- Use
--metadata-onlyto stop after pinning and print the token URI.
Config
Default config path:
config.jsonin this skill directory
Override with:
SUPER_RARE_CONFIG_FILE=/path/to/config.json
Expected keys:
chain:mainnetorsepoliacollectionContractreceiverroyaltyReceiverrpcUrlapiBaseUrldescriptionPrefix
Defaults and safety
- Dry-run is the default. Mint transactions only broadcast with
--broadcastorDRY_RUN=0. - Broadcast mode uses a short Bankr submit timeout and then waits for the onchain receipt directly, which avoids hanging on long confirmation waits.
mint-art.shstill uploads media/metadata to SuperRare before the dry-run mint preview. Use--metadata-onlyif you want to stop after pinning and inspect the token URI.- If neither
receivernorroyaltyReceiveris set, the skill callsaddNewToken(string). - If either receiver field is provided, the skill calls
mintTo(string,address,address). - If only one of
receiverorroyaltyReceiveris set, the other defaults to the same address. - Successful broadcasts write receipts into
receipts/.
Bankr API key resolution
BANKR_API_KEYsystemctl --user show-environment~/.openclaw/skills/bankr/config.json~/.openclaw/workspace/skills/bankr/config.json
Quick use
cp config.example.json config.json
./scripts/pin-metadata.mjs \
--name "aaigotchi genesis #1" \
--description "First aaigotchi genesis mint" \
--image ./art.png
./scripts/mint-via-bankr.sh \
--token-uri ipfs://... \
--broadcast
./scripts/mint-art.sh \
--name "aaigotchi genesis #1" \
--description "First aaigotchi genesis mint" \
--image ./art.png \
--broadcast
Timeouts
Optional environment variables:
BANKR_SUBMIT_TIMEOUT_SECONDS(default60)RECEIPT_WAIT_TIMEOUT_SECONDS(default300)RECEIPT_POLL_INTERVAL_SECONDS(default5)