develop# NFT Marketplace on Fantom
This is an NFT marketplace deployed on the Fantom mainnet network. The marketplace allows users to buy, sell, and trade non-fungible tokens (NFTs) using the Fantom blockchain.
- Browse and search for available NFTs.
- Buy NFTs listed by other users.
- Sell your own NFTs to interested buyers.
- Create listings for NFTs with a title, description, and price.
- View detailed information about each NFT, including its current owner and transaction history.
- Connect your Ethereum wallet (e.g., MetaMask) to interact with the marketplace.
- A web browser with MetaMask or another Ethereum wallet extension installed.
- An account on the Fantom network with funds to purchase NFTs and pay for transaction fees.
- Clone the repository:
git clone https://github.com/stanley07/fantom.git
- Navigate to the project directory:
cd your-repository
- Install the dependencies:
npm install
- Create a new file named
.env
. - Define the following environment variables in the
.env
file:REACT_APP_NETWORK_URL
: The URL of the Fantom network RPC endpoint.REACT_APP_CONTRACT_ADDRESS
: The address of the NFT contract deployed on FantomREACT_APP_CONTRACT_ABI
: The ABI (Application Binary Interface) of the NFT contract.REACT_APP_MARKETPLACE_ADDRESS
: The address of the marketplace contract deployed on Fantom.REACT_APP_MARKETPLACE_ABI
: The ABI of the marketplace contract.
- Start the development server:
npm start
- Open your web browser and navigate to
http://localhost:3000
. - Connect your Ethereum wallet to the marketplace.
- Browse, buy, and sell NFTs using the marketplace's user interface.
If you'd like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b your-branch-name
- Make your changes and commit them:
git commit -am 'Add some feature'
- Push the changes to your forked repository:
git push origin your-branch-name
- Create a pull request in the original repository.
Technologies Used
Fantom: The marketplace is deployed on the Fantom network, leveraging its low transaction fees and fast confirmation times.
React: The frontend is built using React.js, providing a responsive and user-friendly interface.
Hardhat: The smart contracts are developed and tested using the Hardhat framework.
IPFS: NFT metadata and images are stored on IPFS, ensuring decentralized and reliable access.
Web3.js: The marketplace interacts with the Fantom blockchain using the Web3.js library.
Solidity: Smart contracts are written in Solidity, the programming language for Ethereum-based networks.
This project is licensed under the MIT License.
- OpenZeppelin: Solidity library for secure smart contract development.
- React: JavaScript library for building user interfaces.