dawsbot / dawsbot/essential-eth

Add `contract` filters

Open
#18 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
310
Forks
34
PR merge metrics
No merged PRs in 30d

Description

Used to fetch histories on thing like ERC-20 transfers

```ts
const filter = contract.filters.Transfer(
rewardsTreasuryAddress /* from block # */,
recipientAddress /* to block # (optional) */,
);

const startBlock = 12931482;

const logs = await contract.queryFilter(filter, startBlock);
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.