Chia NFT Tool

This simple NodeJS tool accomplishes 4 tasks:

  1. Create Individual NFTs using RPC calls
  2. Bulk create NFTs using RPC calls (slow, ~75 seconds per NFT, but reliable)
  3. Create Offers for NFTs
  4. Bulk create offers for NFTs

Works with IPFS out of the box. Must have images and metadata ready, along with their IPFS CIDs. Check /metadata for example metadata from Chia Friends.

Powered by Chia Agent


Get Started

Install deps

yarn

Set Constants in utils/constants.js

  WALLET_ID             // Chia wallet ID
  WALLET_FINGERPRINT    // Chia key fingerprint, used to login
  TARGET_ADDRESS        // XCH address to receive NFT
  ROYALTY_ADDRESS       // XCH address to receive Royalties
  ROYALTY_VALUE         // Royalty value - 10,000 = 100%
  TOTAL_SUPPLY          // Amount of NFTs to mint
  CREATE_FEE            // Fee paid to farmers. Test between 600000000 and 800000000 Mojos
  OFFER_AMOUNT_MOJOS    // Amount of Mojos to request for an NFT offer

Set CURRENT_INDEX in createNFTs.js

Modify metadataCids.json & imgCids.json to include IPFS CIDs. These CIDs should represent the JSON metadata and images in /metadata & /images.

Make sure you have a Chia wallet and node running.

Create NFTs

node createNFTs.js

Optionally populate OFFER_IGNORE_LIST in constants.js to ignore existing offers on created NFTs.

Create offers, outputs offer files to /offers. Uses the most recent offer in the directory as the starting index.

node createOffers.js

Feel free to raise an issue if something is broken!

Made for Cacti

Made by ET at Omakasea

Website