File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,20 @@ module.exports = function(getRequest, apiKey) {
44 /**
55 * The Event Log API was designed to provide an alternative to the native eth_getLogs.
66 */
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+ */
721 getLogs ( address ,
822 fromBlock ,
923 toBlock ,
@@ -13,7 +27,8 @@ module.exports = function(getRequest, apiKey) {
1327 topic1_2_opr ,
1428 topic2 ,
1529 topic2_3_opr ,
16- topic3 ) {
30+ topic3 ,
31+ topic0_2_opr ) {
1732
1833 const module = 'logs' ;
1934 const action = 'getLogs' ;
@@ -57,6 +72,10 @@ module.exports = function(getRequest, apiKey) {
5772 params . topic2_3_opr = topic2_3_opr ;
5873 }
5974
75+ if ( topic0_2_opr ) {
76+ params . topic0_2_opr = topic0_2_opr ;
77+ }
78+
6079 if ( topic3 ) {
6180 params . topic3 = topic3 ;
6281 }
You can’t perform that action at this time.
0 commit comments