MCPcopy Create free account
hub / github.com/Bot80926/ethers-scripts / getEventList

Method getEventList

utils/provider.js:103–116  ·  view source on GitHub ↗
(filter, fromBlock, toBlock)

Source from the content-addressed store, hash-verified

101 }
102
103 async getEventList(filter, fromBlock, toBlock) {
104 const contract = new Ethers.Contract(filter.contract, filter.abi, this.provider);
105 const result = [];
106
107 // abi should contain a list of all events when using *
108 const events = await contract.queryFilter("*", fromBlock, toBlock);
109 for (const event of events) {
110 if (!!event.args) {
111 result.push(await this.getTransactionEvent(event));
112 }
113 }
114
115 return result;
116 }
117
118 async getGasPrice() {
119 return await this.provider.getGasPrice();

Callers

nothing calls this directly

Calls 1

getTransactionEventMethod · 0.95

Tested by

no test coverage detected