DEV Community

Giovanni Fu Lin
Giovanni Fu Lin

Posted on • Edited on

Use sugar - NFT on solana

Download the collection sample.
https://docs.metaplex.com/developer-tools/sugar/preparing-assets

create and import to the assets folder

Install solana CLI

sh -c "$(curl -sSfL https://release.solana.com/v1.11.10/install)"
Enter fullscreen mode Exit fullscreen mode

Install sugar CLI

bash <(curl -sSf https://sugar.metaplex.com/install.sh)
Enter fullscreen mode Exit fullscreen mode

create the config.json

sugar create-config
Enter fullscreen mode Exit fullscreen mode

validate JSON metadata are OK

sugar create-config
Enter fullscreen mode Exit fullscreen mode

Create a candy machine deployment from assets

sugar launch
Enter fullscreen mode Exit fullscreen mode

if you chose bundlr you have to fund SOL to the upload account. you can find the pubkey in the terminal. run again

sugar launch
Enter fullscreen mode Exit fullscreen mode

when candy mahcine successful created. run sugar show to check information

Now you are ready to mint

sugar mint
Enter fullscreen mode Exit fullscreen mode

Top comments (0)