I am currently learning quorum. I was able to build two node environment by referring to "Creating a network from scratch" in the following quorum official link, and successed to attach node1 using geth.ipc.


But I don't know how to create private-transactions between two nodes as a flow after this. Does it have any other setting files and script files its need?

static-nodes.json file is below.


genesis.json file is below.

    "alloc": {
        "balance": "1000000000000000000000000000"
        "balance": "2000000000000000000000000000"
   "coinbase": "0x0000000000000000000000000000000000000000",
   "config": {
     "homesteadBlock": 0,
     "byzantiumBlock": 0,
     "chainId": 10,
     "eip150Block": 0,
     "eip155Block": 0,
     "eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
     "eip158Block": 0,
     "isQuorum": true
   "difficulty": "0x0",
   "extraData": "0x0000000000000000000000000000000000000000000000000000000000000000",
   "gasLimit": "0xE0000000",
   "mixhash": "0x00000000000000000000000000000000000000647572616c65787365646c6578",
   "nonce": "0x0",
   "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
   "timestamp": "0x00"

As per the response from Florian - follow the instructions in the docs for Creating Private Transactions/Contracts.

Make sure you have a transaction manager running for each node (e.g. Tessera).

Essentially you just need to add a 'privateFor' field to the transaction; this must contain the public key of the private transaction participant (i.e. the public key for the transaction manager on the other node).

BTW Assuming you're using a recent version of Quorum, I'd suggest also adding the following to your genesis:

"constantinopleBlock": 0,

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.