GoQuorum plugin for Remix
The GoQuorum plugin for Ethereum's Remix IDE adds support for creating and interacting with private contracts on a GoQuorum network.
Using the Quorum plugin for Remix
Go to the Remix IDE. From the left menu select the Plugin manager tab, scroll down to Quorum Network, and Activate.
Accept the permission to allow the plugin to retrieve compilation results. This allows the plugin to use the Solidity compiler to get the compiled contract binary to deploy to your GoQuorum node.
The plugin should now be included in the icons on the left side. Click on the Quorum icon to show the plugin.
Input the geth RPC URL and hit enter. If you are currently running the
quorum-examples
7nodes network, the first node's URL ishttp://localhost:20000
.If the node is running, the plugin says Connected and the rest of the UI appears.
The GoQuorum plugin uses results from Remix's Solidity compiler, so pull up some contract code and compile it as you normally would in Remix. The plugin will automatically receive the compiled code on each new compilation.
Once you have a contract compiled, it will automatically be selected in the Compiled Contracts dropdown. Input any constructor values and deploy.
If successful, the contract will show up in a collapsed view under Deployed Contracts. Click the caret to expand.
From here you can call methods on the contract.
To create a private contract, add your Tessera public keys one at a time to the Private for multi-select box. Press enter after inputting each one to save and select.
Add as many peers as you want, then deploy the contract again as in step 7.
After deploying and expanding the new contract, you should see the public keys that you selected in the widget. Every method call will include the selected keys automatically.
If you have any feedback or questions, please open a GitHub issue or reach out on the GoQuorum community support.
Contributing
The GoQuorum plugin for Remix is open source and you can contribute enhancements. Upon review of your changes you're required to complete a Contributor License Agreement (CLA) before merging. If you have any questions about the contribution process, please contact the Quorum support team.