Get started Set your private key (.env file): PRIVATE_KEY= Deploy on testnet: npx hardhat run scripts/sample-script.js --network matic References https://medium.com/pinata/how-to-create-layer-2-nfts-with-polygon-and-ipfs-aef998ff8ef2