This repo makes use of cakeshop and quorum-quick-start
so you don't have to run
npx quorum-dev-quickstart
git clone git@github.com:ConsenSys/cakeshop.git
and includes various examples of sol contracts inside of quorum-test-network/smart_contracts/..
cd quorum-dev-quickstart
./run.sh
# To Stop
./stop.sh
# To remove all containers and stop
./remove.sh
cd /cakeshop-master/quorum-dev-quickstart
docker-compose up -d
# To Stop
docker-compose down
http://localhost:8999/ to view
cd smart_contracts/privacy
npm install
node scripts/private_tx.js
- In terminal 1, run
./attach.sh 1
to attach to Member1. - In terminal 2, run
./attach.sh 2
to attach to Member2. - In terminal 3, run
./attach.sh 3
to attach to Member3.
# How it works in order
personal.newAccount("PASSWORD")
personal.unlockAccount("ACCOUNT_ADDRESS", "PASSWORD", 1000)
eth.getTransactionCount("ACCOUNT_ADDRESS")
eth.sendTransaction({from: "FROM_ADDRESS", to: "TO_ADDRESS", value: AMOUNT, gasPrice: GAS_PRICE, gas: GAS_LIMIT})
personal.lockAccount("ACCOUNT_ADDRESS")
-
Use the personal.listAccounts method to list all of the accounts on the blockchain network:
personal.listAccounts()
-
Use the eth.getTransactionCount method to retrieve the number of transactions made by a specific account:
eth.getTransactionCount("ACCOUNT_ADDRESS")
-
Use the eth.sendTransaction method to send a transaction to the blockchain network:
eth.sendTransaction({from: "FROM_ADDRESS", to: "TO_ADDRESS", value: AMOUNT, gasPrice: GAS_PRICE, gas: GAS_LIMIT})
-
Disconnect from the blockchain network by typing "exit" in the Geth JavaScript console.
cd QuorumBlockChain/quorum-test-network/smart_contracts/privacy/contracts README.md for more information
- Compile Contract
- Private Contracts
Using eth_sendTransaction
Using priv.generateAndSendRawTransaction
Using web3.eth.Contract\