/nft

NFT publishing automation

Primary LanguageShell

NFT Automation With Solana / Metaplex

The goal of this project is to automate publishing of Non-fungible token (NFT) by dockerizing Metaplex API.

Project Structure

As you can see in root directory of this repository, there are four main docker images.

  • solana-account for creating account.
  • solana-airdrop for geting SOL airdrop.
  • solana-deploy for publishing NFT. This is the main image.
  • solana-environment for common environment. Other images are based on this image.

Don't care about scripts directory. That is just some script snippets of Metaplex CLI.

Instruction

Follow the instructions below to publish an NFT.

  1. Run build-all.sh script to build all images.
  2. Run docker run --rm solana-account > wallet.json command to generate wallet.
  3. Run docker run --rm -it -v $(pwd)/wallet.json:/wallet.json:ro solana-airdrop command to get some SOL coins. If account does not have at least 2 SOLs, it cannot publish NFT. (Actually, solana-account image do this internally, but for sure, do it again.)
  4. Create a directory for assets. For example, my-assets.
  5. Add some png type images in it. The name of image file will be the name of NFT.
  6. Run docker run --rm -it -v $(pwd)/my-assets:/assets -v $(pwd)/wallet.json:/wallet.json:ro solana-deploy command to deploy NFT.

Follow the instructions below to check your NFT

  1. Add Phantom wallet to your browser.
  2. Add created wallet to Phantom wallet.
    1. Open wallet.json file and copy 'private_key' part, which is a long array of numbers like [100, 34, 15, ..., 32]
    2. Click top-left menu at Phantom browser extension.
    3. Click add/connection wallet menu.
    4. Click Import private key menu.
    5. Paste private key.
  3. Then, click collectible menu, (⊞) and you can see the published NFTs.

My NFTs

Deadong River Water

My NFT Deadong River Water series is FOR SALE! Contact to unknownpgr@gmail.com to buy one. Below are some samples!

These NFTs are not on mainnet but devnet. Therefore, it is pointless to trade using SOL, but you can still trade using dollars or KR won.