This system help to transfer digital currency securely from one account to another using Blockchain and eliminating the risk of fraud
- 1 Vedant Sonawane
- 2 Yash Sharma
- 3 Aryan Dubey
- 4 Daman Paul
- yash Sharma#4789
- Optimus Prime#1360
- Aryann#1841
- Daman#3975
- Here, we used the Solidity language to create a smart contract. smart-contract are simply programs stored on a blockchain that run when predetermined conditions are met. They typically are used to automate the execution of an agreement so that all participants can be immediately certain of the outcome, without an intermediary's involvement or time loss. and the IDE which we have used here is REMIX which is Ethereum's online web application to write, debug and deploy smart contracts efficiently and effectively. We have selected injected web3 as our runtime environment which will connect with metamask test network, MetaMask is a software cryptocurrency wallet used to interact with the Ethereum blockchain which is an Etherium based distributed application to run your smart contract in a blockchain for Dapps.
- Till now public could only transfer money to NGOs with the help of the physical currency and it is governed by the regulatory body of the country and is a centralized network. We came up with the new innovative idea, with the help of this system, you can now transfer cryptocurrency to NGOs with ease, and it's a more secure way of payment as each transaction is in a blockchain and store the data in encrypted form, also the data are immutable.
-
Install : Node.js
-
Install in Terminal :
npm install ganache-cli
- Run :
ganache-cli
- Solidity
- Web3
- npm
- Node.js
- MetaMask
Step 1 :
Fork this repository or else use git clone, to clone the repository on your local machine
Step 2 :
Install the requirments.
Step 3 :
Run ganache-cli in terminal and copy any private key.
open metamask extension and click on account, Import account, and paste the private key.
you can now see 100 ETH in your account.
Step 4 :
Paste the above code from the above file in IDE and compile the code (make sure to choose the compiler version 0.5.17 +)
Step 5:
Select run and deploy transaction from left panel , choose environment injected web3 and choose the account from from metamask with 100 ETH, and choose value (eg 10).
In the add recipent address , click on metamask and choose account 1 copy the address (and click on account 2 ) and add duration (eg: 40) and click transact
Step 6 :
Now you can see a pop-up notification from metamask click on confirm.
Step 7 :
whoopee !!! you have successfully transeferd the amount. to verify your transaction click meta mask and click Activity.