File tree 2 files changed +22
-0
lines changed
2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 17
17
from web3 .iban import Iban
18
18
from web3 .miner import Miner
19
19
from web3 .net import Net
20
+ from web3 .parity import Parity
20
21
from web3 .personal import Personal
21
22
from web3 .testing import Testing
22
23
from web3 .txpool import TxPool
@@ -68,6 +69,7 @@ def get_default_modules():
68
69
"txpool" : TxPool ,
69
70
"miner" : Miner ,
70
71
"admin" : Admin ,
72
+ "parity" : Parity ,
71
73
"testing" : Testing ,
72
74
}
73
75
Original file line number Diff line number Diff line change
1
+ from web3 .module import (
2
+ Module ,
3
+ )
4
+
5
+
6
+ class Parity (Module ):
7
+ """
8
+ https://paritytech.github.io/wiki/JSONRPC-parity-module
9
+ """
10
+ def enode (self ):
11
+ return self .web3 .manager .request_blocking (
12
+ "parity_enode" ,
13
+ [],
14
+ )
15
+
16
+ def netPeers (self ):
17
+ return self .web3 .manager .request_blocking (
18
+ "parity_netPeers" ,
19
+ [],
20
+ )
You can’t perform that action at this time.
0 commit comments