Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 939 Bytes

README.md

File metadata and controls

44 lines (31 loc) · 939 Bytes

NFT Escrow

A smart contract that allows a seller sell an NFT directly to a buyer

Compile

npx hardhat compile

Set up deployment

  • Create an account on MATIC RPC, create a new proect and copy your app id
  • Create an account on polygonscan and create a new apikey
  • Create a secret.json file with the following content:
{
    "APP_ID": "Your appId",
    "PRIVATE_KEY1": "Your mumbai testnet account private key",
    "PRIVATE_KEY2": "Another mumbai testnet account private key",
    "POLYGONSCAN_API_KEY": "Your api key"
}

Deploy to mumbai testnet

npx hardhat run scripts/deploy.js --network mumbai

Verify on polygonscan

npx hardhat verify --network mumbai {DEPLOYED_CONTRACT_ADDRESS}

Mint some test nfts

You can also mint some test NFTs by running this command

npx hardhat run scripts/mintNFTs.js