1. Cài Solana
wget https://github.com/solana-labs/solana/releases/download/v1.9.9/solana-release-x86_64-unknown-linux-gnu.tar.bz2
tar jxf solana-release-x86_64-unknown-linux-gnu.tar.bz2
cd solana-release/
export PATH=$PWD/bin:$PATH
solana --version
2. Tạo ví
mkdir SolWallet
solana-keygen new --outfile SolWallet/mykey.json
chmod -R 777 ./*
3. Config devnet, ví…
solana config set --url https://devnet.solana.com
solana config set --keypair SolWallet/mykey.json
solana config set --url devnet
4. Dùng Solana thì phải có SOL để thanh toán phí giao dịch…
solana airdrop 1 BfrH2EbBm5w2yHaqfGKc394fAxjodQhexhxknENwdbrN --url https://api.devnet.solana.com
5. NFT trong Solana là token có supply chặn ở 1.
spl-token create-token --decimals 0
spl-token create-account YOUR_NFT_TOKEN
spl-token mint YOUR_NFT_TOKEN 1
spl-token authorize YOUR_NFT_TOKEN mint --disable
6. Check token thôi
https://explorer.solana.com/address/BfrH2EbBm5w2yHaqfGKc394fAxjodQhexhxknENwdbrN/tokens?cluster=devnet