Reference: https://medium.com/pinata/how-to-create-nfts-like-nba-top-shot-with-flow-and-ipfs-701296944bf
Installing Flow Cli
brew install flow-cli
Other requirements:
- NodeJS
- Optional: Cadence language server on VSCode (or other preferred IDE)
flow project start-emulator
flow project deploy
- save the account address from the output and modify the
flow.json
and import statement for the smart contract accordingly
- only needs to be done once and the private key should be updated in
flow.json
flow keys generate
- mints the NFT specified in
./transactions/MintMediaNFT.cdc
(to mint NFT for different object - change the IPFS uri)
flow transactions send --code ./transactions/MintMediaNFT.cdc --signer emulator-account
- to verify different NFT - change
id
inCheckTokenMetadata.cdc
flow scripts execute --code ./scripts/CheckTokenMetadata.cdc