File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,20 @@ module.exports = function(getRequest, apiKey) {
4
4
/**
5
5
* The Event Log API was designed to provide an alternative to the native eth_getLogs.
6
6
*/
7
+ /**
8
+ * returns the status of a specific transaction hash
9
+ * @param {string } fromBlock - fromBlock
10
+ * @param {string } toBlock - toBlock
11
+ * @param {string } topic0 - topic (32 Bytes per topic)
12
+ * @param {string } topic0_1_opr - and|or between topic0 & topic1
13
+ * @param {string } topic1 - topic (32 Bytes per topic)
14
+ * @param {string } topic1_2_opr - and|or between topic1 & topic2
15
+ * @param {string } topic2 - topic (32 Bytes per topic)
16
+ * @param {string } topic2_3_opr - and|or between topic2 & topic3
17
+ * @param {string } topic3 - topic (32 Bytes per topic)
18
+ * @param {string } topic0_2_opr - and|or between topic0 & topic2
19
+ * @returns {Promise.<object> }
20
+ */
7
21
getLogs ( address ,
8
22
fromBlock ,
9
23
toBlock ,
@@ -13,7 +27,8 @@ module.exports = function(getRequest, apiKey) {
13
27
topic1_2_opr ,
14
28
topic2 ,
15
29
topic2_3_opr ,
16
- topic3 ) {
30
+ topic3 ,
31
+ topic0_2_opr ) {
17
32
18
33
const module = 'logs' ;
19
34
const action = 'getLogs' ;
@@ -57,6 +72,10 @@ module.exports = function(getRequest, apiKey) {
57
72
params . topic2_3_opr = topic2_3_opr ;
58
73
}
59
74
75
+ if ( topic0_2_opr ) {
76
+ params . topic0_2_opr = topic0_2_opr ;
77
+ }
78
+
60
79
if ( topic3 ) {
61
80
params . topic3 = topic3 ;
62
81
}
You can’t perform that action at this time.
0 commit comments