Deprecated notice
Consortium networks have been deprecated. This guide is for historical reference.Interaction tools
GoQuorum
To interact with your Quorum network, you must install a GoQuorum client.Go installation
To be able to install GoQuorum, you must install Go first. See Go: Getting Started.geth attach
command:
JSON-RPC API
Interact with your Quorum network using: Use curl or Postman. The example below demonstrates how to get basic network information:Developments tools
Truffle
Configure Truffle Suite to deploy contracts to your Quorum network.-
Install Truffle Suite and create a project
Recommended version
Use Truffle >= 5.0.14 which has complete Quorum support with privacy features. -
Install
HDWalletProvider
HDWalletProvider is Truffle’s separate npm package used to sign transactions. Run: -
Create a new environment in
truffle-config.js
with:HDWalletProvider
- Your Quorum network running with Chainstack
wherechainstack
— any network name that you will pass to thetruffle migrate --network
command.HDWalletProvider
— Truffle’s custom provider to sign transactionsmnemonic
— your mnemonic that generates your accounts. You can also generate a mnemonic online with Mnemonic Code Converter. Make sure you generate a 15 word mnemonic.- ENDPOINT — your Quorum node HTTPS endpoint. See View node access details.
network_id
— your Quorum network ID. See Default network ID. You can set it to*
for any.gasPrice
— the setting must be0
for the Quorum network.gas
— the setting must be the default4500000
for the Quorum network.type
— the setting must bequorum
to instruct Truffle for the Quorum network deployment.
-
Run
truffle migrate --network chainstack
and Truffle will deploy using Chainstack
web3.js
Build DApps using web3.js and Quorum nodes deployed with Chainstack.- Install web3.js.
-
Use the
HttpProvider
object to connect to your node HTTPS endpoint.where- ENDPOINT — your node HTTPS endpoint
- USERNAME — your Quorum node access username
- PASSWORD — your Quorum node access password
web3j
Build DApps using web3j and Quorum nodes deployed with Chainstack. Use theHttpService
object to connect to your node HTTPS endpoint.
Example to get the latest block number:
- ENDPOINT — your node HTTPS endpoint
- USERNAME — your node access username
- PASSWORD — your node access password