mirror of https://github.com/poanetwork/quorum.git
934 B
934 B
The extend
module of quorum.js allows Quorum-specific APIs to be added to an instance of web3
.
Example
const Web3 = require("web3");
const quorumjs = require("quorum-js");
const web3 = new Web3("http://localhost:22000");
quorumjs.extend(web3);
web3.quorum.eth.sendRawPrivateTransaction(signedTx, args);
Parameters
param | type | required | description |
---|---|---|---|
web3 |
Object |
yes | web3 instance |
apis |
String |
no | comma-separated list of APIs to extend web3 with. Default is to add all APIs, i.e. quorumjs.extend(web3, 'eth, raft, istanbul, quorumPermission') |
Methods
See the Raft, Istanbul, Privacy, and Permissioning API documentation for API details.