Skip to content

NobleOsinachi/nft-escrow

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 94.0%
  • JavaScript 6.0%