1)install node
2)create a account on pinata and copy the api key and paste it after Bearer in app.py something like shown below
- create a folder and open it in vs code
- open a new terminal a new terminal and run:- npm install --save-dev hardhat
- after installing hardhat run npx hardhat -> create javascript with default configuration
6)then copy paste the Blockchain main folder and deploy.js file in your created folder
7)copy the content from uplod.sol and paste it in Lock.sol in contracts folder
-
copy the data from hardhat.config.js from this repo to the hardhat.config.js in your local computer
-
create a new terminal and run :- npx hardhat node (dont close this terminal)
10)create a new terminal and run :- npx hardhat run --network localhost deploy.js
11)in your folder on your computer in client folder this is file Upload.json from that copy the abi part
-
replace the abi part in app.py in contract_abi part with you copied abi
-
after running "npx hardhat run --network localhost deploy.js" you will gate a hash in treminal after "Library deployed to: " copy that hash and replace contract_address
-
run the python file
-
after opening the site you will have to enter priavte key from the terminal of (npx hardhat node) cammand and not address
-
note that you can only use the address from (npx hardhat node) terminal