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.
First install the required packages with yarn install
or npm install
.
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>,...
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>,...
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.
This project is licensed under the MIT License - see the LICENSE file for details.