Commands
Universe
Get all universe accounts
Get all the universes deposited in the nft-composer program
ts-node cli/src/nft-composer-cli.ts get_all_universes -k cli/wallet/test-wallet.json -e "devnet"
Create universe
Call this command for creating the universe
ts-node cli/src/nft-composer-cli.ts create_universe -k cli/wallet/test-wallet.json \
-e "devnet" \
-n "First Universe" \
-w "http://3moji.app" \
-d "Universe for 3moji"
Update universe
Update the universe
ts-node cli/src/nft-composer-cli.ts update_universe -k cli/wallet/test-wallet.json \
-e "devnet" \
-n "Updated first Universe" \
-w "http://3moji.app" \
-d "Updated Universe description"
Wrapped User Nfts
Get Wrapped user nft accounts
Get all wrapped user nfts accounts of all the universes
ts-node cli/src/nft-composer-cli.ts get_wrapped_user_nft_accounts \
-k cli/wallet/test-wallet.json \
-e "devnet" \
--universes "3" "2" \
--vault-authorities "8" "5" \
--authorities "43" "12"
Get a wrapped user nft account
Get a wrapped user nft account with a receipt mint
ts-node cli/src/nft-composer-cli.ts get_wrapped_user_nft_accounts \
-k cli/wallet/test-wallet.json \
-e "devnet" \
--receipt-mint-key "receiptMintKey"
Get Metadata for Mint
Get metadata for the mint (uses metaplex library)
ts-node cli/src/nft-composer-cli.ts get_wrapped_user_nft_accounts \
-k cli/wallet/test-wallet.json \
-e "devnet" \
--mint-key "mintKey"
Deposit NFT into an universe
ts-node cli/src/nft-composer-cli.ts get_wrapped_user_nft_accounts \
-k cli/wallet/test-wallet.json \
-e "devnet" \
--universe-key "universeKey" \
--nft-mint-key "mintKey" \
--receipt-name "Any Receipt Name" \
--receipt-url "http://localhost:89" \
--receipt-master-edition false \
--meta-nft-name "meta nft name" \
--meta-nft-url "http://local:90" \
--meta-nft-master-edition false
Withdraw nft with Receipt
ts-node cli/src/nft-composer-cli.ts get_wrapped_user_nft_accounts \
-k cli/wallet/test-wallet.json \
-e "devnet" \
--universe-key "universeKey" \
--receipt-mint-key "receiptMintKey"
Withdraw Nft
ts-node cli/src/nft-composer-cli.ts get_wrapped_user_nft_accounts \
-k cli/wallet/test-wallet.json \
-e "devnet" \
--universe-key "universeKey" \
--nft-mint-key "nftMintKey"
Meta Treasury Initialize
ts-node cli/src/nft-composer-cli.ts init_meta_treasury \
-k cli/wallet/deployer-wallet.json \
-e "devnet" \
--fixed-fee "0.0001"
Update Fixed fee for Meta Treasury
ts-node cli/src/nft-composer-cli.ts update_fixed_fee_of_meta_treasury \
-k cli/wallet/deployer-wallet.json \
-e "devnet" \
--fixed-fee "0.00001"
Update Meta Treasury
ts-node cli/src/nft-composer-cli.ts update_meta_treasury \
-k cli/wallet/deployer-wallet.json \
-nk cli/wallet/deployer-wallet.json \
-e "devnet" \
--fixed-fee "0.00001"