-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathrpc-interface.js
35 lines (32 loc) · 1.14 KB
/
rpc-interface.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
"use strict";
var createRpcInterface = function (ethrpc) {
return {
constants: ethrpc.constants,
errors: ethrpc.errors,
eth: ethrpc.eth,
net: ethrpc.net,
clear: ethrpc.clear,
startBlockStream: ethrpc.startBlockStream,
getBlockStream: ethrpc.getBlockStream,
getCoinbase: ethrpc.getCoinbase,
getCurrentBlock: ethrpc.getCurrentBlock,
getGasPrice: ethrpc.getGasPrice,
getNetworkID: ethrpc.getNetworkID,
getLogs: ethrpc.getLogs,
getTransport: ethrpc.getTransport,
getTransactionReceipt: ethrpc.getTransactionReceipt,
isUnlocked: ethrpc.isUnlocked,
packageAndSubmitRawTransaction: ethrpc.packageAndSubmitRawTransaction,
callContractFunction: ethrpc.callContractFunction,
transact: ethrpc.transact,
excludeFromTransactionRelay: ethrpc.excludeFromTransactionRelay,
registerTransactionRelay: ethrpc.registerTransactionRelay,
setDebugOptions: ethrpc.setDebugOptions,
WsTransport: ethrpc.WsTransport,
publish: ethrpc.publish,
sha3: ethrpc.sha3,
};
};
var ethrpc = createRpcInterface(require("ethrpc"));
ethrpc.createRpcInterface = createRpcInterface;
module.exports = ethrpc;