A decentralized application (dApp) is an application built on a decentralized network that combines a smart contract and a frontend user interface. On Ethereum, smart contracts are accessible and transparent – like open APIs – so your dApp can even include a smart contract that someone else has written.
This project demonstrates how to build decentralized applications (dApps) and decentralized storage for non-fungible token (NFT) contracts. We do this by building our (dApp) smart contract on the the ERC-721 Non-Fungible Token Standard defined in the Ethereum Improvement Proposal (EIP)–721.
We use the ERC-721 Non-Fungible Token Standard contract to demostrate how users can buy or sell artwork NFTs in a decentralized marketplace. Users are able to select their accounts and register new artwork tokens through a web interface. Users will also be able to display the tokens for their accounts so that they can display the artwork on the webpage.
-
Ganace - Ganache is a tool that allows you to quickly set up a local blockchain, which you can use to test and develop smart contracts. Follow the instructions on the Ganache Download page to download and install this tool on your local machine.
-
Metamask - MetaMask is a digital wallet for the Ethereum blockchain. Follow the instructions on the MetaMask Download page to install MetaMask in your web browser.
-
Pinata (Create a Token) - Pinata is for storing and managing your NFT media . It uses the Interplanetary File System, or IPFS, to create content-addressable hashes of data. Follow the instructions on the Pinata page to create a token and start using Pinata
Clone a copy of the repo:
git clone https://github.com/rdillens/Smart_Contracts.git
Change to the SDK's directory:
cd Smart_Contracts
Create new environment in conde with depenencies:
conda create --name SmartContracts_env python=3.7 --file requirements.txt
Or install the following packages:
pip install streamlit
pip install streamlit-pages
pip install python-dotenv
pip install web3
The .env file WEB3_PROVIDER_URI containes the Ganache RPC URL to allow the WEB3 Provider to connect to our local block chain provided by Ganache.
PINATA_API_KEY= XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
PINATA_SECRET_API_KEY= XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
WEB3_PROVIDER_URI=http://127.0.0.1:7545
SMART_CONTRACT_ADDRESS= [Address of Deployed Contract]
streamlit run app.py
- Chafic Charafeddine
- Remy Dillenseger
- Gregory Douglas
- Jose Medina