The goal of this project is to automate publishing of Non-fungible token (NFT) by dockerizing Metaplex API.
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.
Follow the instructions below to publish an NFT.
- Run
build-all.sh
script to build all images. - Run
docker run --rm solana-account > wallet.json
command to generate wallet. - 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.) - Create a directory for assets. For example,
my-assets
. - Add some
png
type images in it. The name of image file will be the name of NFT. - 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
- Add Phantom wallet to your browser.
- Add created wallet to Phantom wallet.
- Open
wallet.json
file and copy 'private_key' part, which is a long array of numbers like[100, 34, 15, ..., 32]
- Click top-left menu at Phantom browser extension.
- Click
add/connection wallet
menu. - Click
Import private key
menu. - Paste private key.
- Open
- Then, click collectible menu, (⊞) and you can see the published NFTs.
My NFT Deadong River Water
series is FOR SALE! Contact to [email protected] 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.