Skip to content

HectorNBL/SOL-NFT-Generator-HNB

Repository files navigation

Solana-NFT-Generator

For more info on Solana NFT creation and deployment go here: Solana NFTs: 0 to Mint

Generate images and json files with the current Metaplex Metadata Standard

This is originally the Hashlips Art Generator and I've changed the config so that it fits with the current token standard for Solana.

Similar to the original Hashlips Generator you must have your layers folder with the name you want to give to each layer. Your system must also have yarn and node.

To use it:

  1. Clone the repo. Open a terminal and enter
    git clone https://github.com/HectorNBL/Hector--Solana-NFT-Generator.git
  2. Open your IDE of choice. I used VSCode and open the folder containing the repo (the Hector Solana NFTs folder. It's nested within the Hector...Generator folder)
  3. Paste you folders containing your layers into the Layers folder in the repo.

Note The rarity is set with the name of each layer after the # symbol with a number. Example: Green#20.png.

  1. Edit the content of the config.js file. Here are the parts you will want to change
  const names = "NFT-Name"; 
  const description = "Collection-description";
  const image = "image.png";
  const animation_url = "Animation-URL";
  const external_url = "Collection-Website-URL";
  1. Layer order and number of assets generted are set here. The first layer is placed at the back of the image and the last at the very front.

Warning Layer names MUST match the folders' name where your layers are stored

{
    growEditionSizeTo: 5,
    layersOrder: [
      { name: "Background" },
      { name: "Eyeball" },
      { name: "Eye color" },
      { name: "Iris" },
      { name: "Shine" },
      { name: "Bottom lid" },
      { name: "Top lid" },
    ],
  },
];

Note Fields such as Symbol, Creators, and sellerFeeBasisPoints are now stored onchain

  1. The image size is set in the config.js file.
const format = {
  width: 512,
  height: 512,
};
  1. Open terminal and check you're within the Hector Solana NFTs folder and do
    yarn install
  2. To generate do
    node index.js
  3. Check results in Build folder.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published