Skip to content

Feature: Historical sync of tokens before the fork #57

@jxom

Description

@jxom

The Request

The ability to (already) see all of an account's ERC20 tokens when a forked instance has been set up.

Problem

Right now, when we set up a forked instance of an Anvil node, and import an account that holds ERC20 balances, we cannot see those tokens in the ERC20 token list until we import them.

Solution

As a user, when I spin up a forked instance and import my account (which has some ERC20 tokens) into Rivet, then I would expect to see them already in my token list instead of importing each one.

Notes

Should we just do pagination on eth_getLogs (viem's getLogs action) on the RPC Provider? Or should we use an external indexer to find all Transfer events against an account address?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions