Skip to main content

4. Backfill Historical Data

Run your fork with historical transactions to backfill data

GhostLogs will re-execute historical transactions with your custom modifications, giving you precise control over event logs. Simplify onchain analysis by writing data transformation code directly in Solidity with no impact on gas.

Step 1: Navigate Fork Details Page

Click on Backfill

BackfillStep1

Step 2: Create a backfill job

Enter all required fields to start the backfill job.

You can either:

  1. Select all contracts in a fork or
  2. Select a specific contract attached to the fork

You can also either:

  1. Choose to complete backfill (start from genesis) or
  2. Enter specific block range to backfill

Finally, select the events (new ones you added are highlighted in green!) that you want GhostLogs to decode for you.

BackfillStep2

warning

If you try to backfill the whole history for addresses that were touched frequently such as WETH or high-volume uniswap pairs, you likely won't have enough compute units to do a full run from block 1

If you wish to backfill more than 500,000 transactions, contact [email protected] for assistance

Step 3: Wait Until the Job is Done

BackfillStep3

At this point you can:

  1. Download CSV file directly
  2. Export to Dune Analytics
  3. Query from Flipside Crypto