Skip to content

Latest commit

 

History

History
55 lines (35 loc) · 1.05 KB

File metadata and controls

55 lines (35 loc) · 1.05 KB

Testnet Deployment Guide

This guide covers how to deploy a Freshmint project to Flow Testnet.

Create a testnet account

Generate a new key pair for your testnet admin account:

flow keys generate

Save the private key to your .env file:

# .env
FLOW_TESTNET_PRIVATE_KEY=xxxx

Use the Flow Faucet to create a new account with the public key.

Save the resulting address to your .env file:

# .env
FLOW_TESTNET_ADDRESS=xxxx

Deploy your contract

Use fresh deploy to deploy your NFT contract to testnet.

fresh deploy --network testnet

Mint your NFTs and manage drops

Most 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 testnet

Connect the web app to testnet

cd ./web

NETWORK=testnet CONTRACT_ADDRESS=<testnet-contract-address> npm run dev