It is Decentralized open source App (Dapp) built on Ethereum platform. It help in managing multiple accounts.
- Deposit ETH to the Smart Contract and withdraw them later.
- Transfer ETH to an address.
- Check for the balance on the smart contract.
- Get all registerd user's information.
- It allows the user's to update there account later.
- Install Ganache from here, run it and create a quickstart project. This will create a personal local block chain.
- Install MetaMask extention to your browser. This will help your browser to connecting with the block chain and also act as a Wallet.
- Clone this project.
- Install dependencies
npm install - Compile solidity files.
truffle compile - Deploy files to blockchain
truffle deploy(Make sure Ganache is running) - Run the program
npm run start. localhost:3000will open in your browser.- The page will prompt to login to metamask
- Now, we need to connect metamask to our blockchain, which we have creted by running Ganache.
- To do that, click on metamask extention select on
Ropsten Test Network. From the drop down click onCustom RPC. - Enter network name as
Testand RPC URL ashttp://127.0.0.1:7545
- Now we are connected to the network. It's time to import accounts, which have fake ETH.
- Ganache create 10 Accounts with 100ETH as inital ammount.(These are fake and will run only on your Testing Blockchain).
- Select any account and click on key to get private key.
- Copy private key.
- Go back to your browser. Select metamask extention and click on top-right circle to open account panel and then select
Import Account. - Paste your private key and click Import.
- You will see 100ETH in the account, as sign of success.
- You can fetch other accounts, similarly.
The interface shows the total user who have registered with the service with there data store in the smart contract.
- Register: It will create a new account on the smart contract with the mentioned parameters.
- First Name
- Last Name
- Age
- Gender
- Address (Line1, Line2, City, State, Pincode)
Note: Registration data will be linked with the Account selected in Metamask.
-
Modify: It let you to update your account details, if you have registered. The selected metamask account will be use for verfication.
-
Deposit:
- Transfer ETH to smart contract (i.e. to self). You only need to provide ETH value field, address field is not required for this.
- Transfer ETH to other account on blockchain. Address field and value field both are mandatory.
Deposit on the Smart Contract => Don't require address field. Transfer to the given address => Require Both field. All ETH transfer is done from the wallet.












