nft-snapshot
nft-snapshot copied to clipboard
A script to scrape owners of a given NFT. Helpful for snapshots for airdrops, white lists, etc.
When I run `nftsnap erc1155 -n members9-30 -a 0x0170227514a274826685bf81aed06e4218175572 -s 0 -e 49 -f tokensByOwner` it automatically ends after getting the details for 2 tokens even though this contract has...
Token 2 Error: Error: could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.6.1) at Logger.makeError (C:\Users\82103\Desktop\nft-snapshot\nft-snapshot-main\node_modules\@ethersproject\logger\lib\index.js:233:21) at Logger.throwError (C:\Users\82103\Desktop\nft-snapshot\nft-snapshot-main\node_modules\@ethersproject\logger\lib\index.js:242:20) at JsonRpcProvider. (C:\Users\82103\Desktop\nft-snapshot\nft-snapshot-main\node_modules\@ethersproject\providers\lib\json-rpc-provider.js:517:54) at step (C:\Users\82103\Desktop\nft-snapshot\nft-snapshot-main\node_modules\@ethersproject\providers\lib\json-rpc-provider.js:48:23) at Object.throw (C:\Users\82103\Desktop\nft-snapshot\nft-snapshot-main\node_modules\@ethersproject\providers\lib\json-rpc-provider.js:29:53) at rejected (C:\Users\82103\Desktop\nft-snapshot\nft-snapshot-main\node_modules\@ethersproject\providers\lib\json-rpc-provider.js:21:65) at...
used the STARTING_TOKEN_ID as start value for the tokenID for loop and printed a line to indicate snapshot generation starts.
This saves API Requests to Infura and also speeds up execution. From the ethers docs: // A StaticJsonRpcProvider is useful when you *know* for certain that // the backend will...