Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 937 Bytes

README.md

File metadata and controls

13 lines (8 loc) · 937 Bytes

NFT Holder Snapshot tool

Recently for a Good Minds art drop, I needed to get a snapshot of all NFT holders at a specific block.

I did some research, and all I came across were some old holder count Dune dashboards, and a web app that gave incorrect results.

I wrote a Dune query that accomplishes this initially, but upon seeing that the pro tier (needed to save an output as .csv) was $390/mo, I wrote this code. For anyone interested, here's the query.

Getting started

The code is fairly simple. It uses the web3 package as this allows you to specify a block number when calling a contract's methods.

For collections that have a totalSupply exposed, it'll use that to find the size of the collection, otherwise you'll need to provide it yourself.

Before running the code, check out the root README Getting Started's