Skip to content

Grab all IPFS hashes from Atomic Assets NFTs owned by a account or within a collection and output them to csv files.

License

Notifications You must be signed in to change notification settings

blocdraig/nft-ipfs-grabber

Repository files navigation

Atomic Assets IPFS Grabber

This script will grab all the IPFS hashes from Atomic Assets NFTs owned by a account or within a collection and output them to csv files.

Usage

First install the required packages with yarn install or npm install.

Grabbing all IPFS hashes for an account

To grab all IPFS hashes for an account, run one of the following commands depending on your package manager:

yarn run account --account=<account_name>
npm run account -- --account=<account_name>

Optionally, you can specify collections, and asset IDs to filter the results:

yarn run account --account=<account_name> --collections=<collection_name1>,<collection_name2> --assets=<asset_id1>,<asset_id2>,...
npm run account -- --account=<account_name> --collections=<collection_name1>,<collection_name2> --assets=<asset_id1>,<asset_id2>,...

Grabbing all IPFS hashes for a collection

To grab all IPFS hashes for a collection, run one of the following commands depending on your package manager:

yarn run collection --collection=<collection_name>
npm run collection -- --collection=<collection_name>

Optionally, you can specify schemas, templates, and asset IDs to filter the results:

yarn run collection --collection=<collection_name> --schemas=<schema_name1>,<schema_name2> --templates=<template_id1>,<template_id2> --assets=<asset_id1>,<asset_id2>,...
npm run collection -- --collection=<collection_name> --schemas=<schema_name1>,<schema_name2> --templates=<template_id1>,<template_id2> --assets=<asset_id1>,<asset_id2>,...

Output

The script will output the IPFS hashes into csv files in the hashes directory. Account output will be saves to hashes/account, and collection output will be saved to hashes/collection.

Individual files will be created for each collection when grabbing all IPFS hashes for an account, and for each schema when grabbing all IPFS hashes for a collection.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Grab all IPFS hashes from Atomic Assets NFTs owned by a account or within a collection and output them to csv files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published