Code Monkey home page Code Monkey logo

create-solana-collection's Introduction

Solana NFT Collection Creator

Description

This project creates a collection NFT on the Solana blockchain using the Metaplex and Umi libraries. The script reads configuration details from a config.json file and environment variables, then creates and mints a programmable NFT collection. The project includes detailed instructions for setting up your environment and configuration, making it easy to deploy your own NFT collection.

Steps to Setup

  1. Clone this repository and navigate to its directory.

  2. Install the required packages:

    npm install @metaplex-foundation/mpl-token-metadata @metaplex-foundation/mpl-toolbox @metaplex-foundation/umi @metaplex-foundation/umi-bundle-defaults dotenv
  3. Create a .env file in the root directory of your project and add your private key and RPC URL:

    PRIVATE_KEY="YOUR_PRIVATE_KEY"
    RPC_URL="YOUR_RPC_URL"
  4. Update the RPC_URL with your preferred Solana RPC node provider. Here are some options:

  5. Configure the config.json file with your NFT details:

    {
        "name": "YOUR_NFT_NAME",
        "symbol": "SYMBOL",
        "description": "DESCRIPTION",
        "seller_fee_basis_points": 1,
        "metadata_url": "METADATA_URL",
        "creators": [
            {
                "address": "CREATOR_ADDRESS",
                "share": 100
            }
        ],
        "network": "devnet"
    }

Configuration Details

config.json

  • name: The name of your NFT.
  • symbol: The symbol representing your NFT collection.
  • description: A description of your NFT.
  • seller_fee_basis_points: The seller fee in basis points (e.g., 1 basis point = 0.01%).
  • metadata_url: The URL pointing to the metadata JSON for the NFT.
  • creators: An array of creator objects with the following fields:
    • address: The creator's Solana wallet address.
    • share: The share percentage of the creator.
  • network: The Solana network to deploy on, either mainnet or devnet.

Key Points

  • Ensure you have at least $10 worth of SOL on the network you are using to cover transaction fees.
  • Make sure the metadata_url is accessible and correctly formatted to meet Solana's metadata standards.

Running the Script

Once you have configured your environment and config.json file, run the script to create your NFT collection:

node createCollection.js

Contributions

Pull requests are welcome! Feel free to contribute to the project to make it even better.

create-solana-collection's People

Contributors

oxy-op avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.