Skip to content

Instantly share code, notes, and snippets.

@zobront
zobront / getWhales.js
Last active August 24, 2022 20:32
script to grab a sorted list of the largest holders of rfDAI
const ethers = require('ethers');
const STARTING_BLOCK = 41918655;
const FINAL_BLOCK = 44000000;
async function main() {
const provider = new ethers.providers.JsonRpcProvider("https://rpc.ankr.com/fantom/");
let balances = {};
for (let i = STARTING_BLOCK; i < FINAL_BLOCK;) {