Skip to content

Instantly share code, notes, and snippets.

View hellopleasures's full-sized avatar
🏠
Working from home

Pleasures hellopleasures

🏠
Working from home
View GitHub Profile
@hellopleasures
hellopleasures / snapshot.js
Created August 23, 2022 03:01 — forked from stevyhacker/snapshot.js
NFT holders snapshot tool
import fetch from 'node-fetch';
import fs from 'fs';
var requestOptions = {
method: 'GET',
redirect: 'follow'
};
const apiKey = "INSERT_YOUR_OWN_API_KEY_HERE"
@hellopleasures
hellopleasures / snapShop.js
Created August 23, 2022 03:01 — forked from CoolCatsNFTPublic/snapShop.js
Snapshotting Opensea collections
async function snapShot(slug, address, totalTokens) {
const API_KEY = ""
// Step 1 - Pagination
const pages = Math.ceil(totalTokens / 50); // Paginate to account for OpenSea api call limits.
let offSet = 0;
let num = 0;
let totalOwned = 0;
let foundTokens = 0;