This guide covers how to deploy a Freshmint project to Flow Testnet.
Generate a new key pair for your testnet admin account:
flow keys generateSave the private key to your .env file:
# .env
FLOW_TESTNET_PRIVATE_KEY=xxxxUse the Flow Faucet to create a new account with the public key.
Save the resulting address to your .env file:
# .env
FLOW_TESTNET_ADDRESS=xxxxUse fresh deploy to deploy your NFT contract to testnet.
fresh deploy --network testnetMost Freshmint commands accept a --network flag. Use --network testnet to run them on testnet:
fresh mint --network testnet
fresh start-drop 10.0 --network testnet
fresh stop-drop --network testnetcd ./web
NETWORK=testnet CONTRACT_ADDRESS=<testnet-contract-address> npm run dev