essential-eth
essential-eth copied to clipboard
Add `contract` filters
Used to fetch histories on thing like ERC-20 transfers
const filter = contract.filters.Transfer(
rewardsTreasuryAddress /* from block # */,
recipientAddress /* to block # (optional) */,
);
const startBlock = 12931482;
const logs = await contract.queryFilter(filter, startBlock);
@dawsbot going to unassign myself from this; looked managable at the start but not sure it's worth my time. Too many things about contracts I don't understand 😅