deveshrawatJun 30, 2022
Null while fetching logs using ethers

I am trying to fetch logs of uniswapV2, but it returns null, I ma not sure what I am doing wrong here.
My code:
getTransactionLogs(fromBlock, toBlock) {
const filter = {
address: 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
fromBlock,
toBlock
};
console.log(filter);
await this.customHttpProvider.getLogs(this.contractAddress);
}

Can someone let me know the right approach?

Reply
Likes
user
Be the first to comment on this topic

Nothing here yet, be the first one to comment.