A platform for minting and trading NFTs on Base Network (Layer 2 by Coinbase).
This repository contains smart contracts, deployment scripts, and example tests.
smart-contracts/ ├─ contracts/ │ ├─ NFT.sol # ERC721 NFT contract │ ├─ Marketplace.sol # NFT Marketplace contract ├─ scripts/ │ ├─ deploy.js # Deployment script for Base Network ├─ test/ │ ├─ NFT.test.js │ ├─ Marketplace.test.js ├─ hardhat.config.js ├─ package.json ├─ README.md
- Mint ERC721 NFTs
- List NFTs on the marketplace
- Buy NFTs with ETH
- Deploy contracts on Base Network
- Node.js >= 18
- Hardhat
- Metamask or any Web3 wallet
- Test ETH on Base Network (for testnet deployment)
- Clone the repository:
git clone https://github.com/your-username/base-nft-marketplace.git
cd base-nft-marketplace/smart-contracts
npm install
module.exports = {
networks: {
baseTestnet: {
url: "https://base-goerli.rpc.thirdweb.com",
accounts: ["YOUR_PRIVATE_KEY"]
}
},
solidity: "0.8.20",
};
npx hardhat run scripts/deploy.js --network baseTestnet
npx hardhat test