Description: This Solidity dApp allows users to register patents and pay the associated fees. It's implemented on the Ethereum blockchain.
Main Contract: PatentdApp.sol
Features:
- Register new patents.
- Pay a fee to register a patent.
- Retrieve information about registered patents.
- Check the approval status of a patent.
Steps:
-
Clone the repository to your local machine:
git clone <https://github.com/sidrahh12/Patents-DApp.git>
-
Navigate to the project directory:
cd <project-directory>
-
Install the required dependencies:
npm install
-
Compile the smart contract:
npx hardhat compile
-
Deploy the smart contract to your chosen Ethereum network. You'll need to set up a
secrets.json
file with your Ethereum wallet private key and network URL.npx hardhat run scripts/deploy.js --network <network-name>
Replace<network-name>
with your desired Ethereum network (e.g.,rinkeby
,mainnet
, orlocalhost
for local development). -
Start the dApp locally:
npm start
The dApp should be accessible at http://localhost:3000
.
Steps:
- Connect your Ethereum wallet (e.g., MetaMask) to the dApp.
- Register a new patent by providing a name, title, and description, and pay the associated fee.
- View all registered patents.
- Check the approval status of each patent.
- Retrieve details of a specific patent using its ID.
This project is licensed under the MIT License.