Skip to content

MarcoMazzoni/react-quorum-wallet

Repository files navigation

Overview

This is a simple PoC of a React-Redux WebApp interacting with a private Quorum network.

  1. You can make common transactions as well as private transactions (you can also choose which nodes to include in the private transactions).
  2. Once the transaction is confirmed, a success modal pops up and you can copy both the transaction hash and the block hash by clicking on them.
  3. You can then paste those hashes in the BlockExplorer section of the app and lookup the transactions.
  4. You can pick the node to log on by clicking on the Node header card.
  5. You can see the balance of each account on the Balance header card.

alt text

Requirements

You need to have Truffle and Docker (also docker-compose) installed.

How to start the application

In the project directory, you can run:

run_app.sh

Once the script exited, you can simply connect to http://localhost:5001 via browser.

This script will:

  1. setup a private Quorum network of 5 nodes (with IBFT consensus) using docker-compose
  2. deploy an ERC20 token smart contract on the blockchain using Truffle
  3. copy the address of the smart contract into the src/quorum-config.json file
  4. deploy the web app containers using docker-compose

To shutdown the app, you just need to run the shutdown_app.sh script. This will remove all docker containers and volumes.

Resources

.
├── config
├── src
└── truffle-erc20

How it's made

This project was bootstrapped with Create React App.

#####################################

Generate contract type declaration file

npx typechain --target=web3-v1 --outDir ./src/contract './src/contract/*.json' npx typechain --target=web3-v1 --outDir ./src/contract './src/contract/MyToken.json'

About

Quorum-Web3-React wallet webapp with custom token

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published