Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add contract filters #18

Open
dawsbot opened this issue Dec 13, 2021 · 1 comment
Open

Add contract filters #18

dawsbot opened this issue Dec 13, 2021 · 1 comment

Comments

@dawsbot
Copy link
Owner

dawsbot commented Dec 13, 2021

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);
@arimgibson arimgibson self-assigned this May 22, 2022
@arimgibson
Copy link
Contributor

@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 😅

@arimgibson arimgibson removed their assignment May 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants