npm run dev
- runsscript.ts
for developing/testing flowsnpm run cli
- start in cli mode. Example:npm run cli -- address=0x08d7c0242953446436f34b4c78fe9da38c73668d chain=1 task=create
npm run cli-server
- start in cli mode with a heap size of 60GBnpm run queue
- starts a collection queue listener to scrape collections based off a db subscription
- Tasks
scrape
- scrapes collections from opensea and new collections to the db (saves the minimal amount of data for a collection)- Example command:
npm run cli -- task=scrape
- Example command:
create
- handles creating the specified collection (gets all data for the collection including all nfts)- Modes
- Address Mode
address
(required) - the address to run the task forchain
(optional) - Base 10 chain id. Defaults to 1hasBlueCheck
(optional) - whether the collection is verified (defaults to false)reset
(optional) - if set totrue
the collection will be reset and all data will be collected, defaults to falsepartial
(optional, defaults to true) - if set tofalse
collection will be completely indexed, else only collection level metadata will be indexedmintData
(optional, defaults to false) - if set totrue
mint prices, timestamps and mint txn hashes will be collectedtask
(optional) - the type of task to run. Valid tasks includecreate
(default) - creates a collection
- File Mode
file
(required) - path to a file structured as
[ { address: string, // (required) chainId: string, // (optional) defaults to 1 hasBlueCheck: boolean, // (optional) defaults to false reset: boolean, // (optional) defaults to false partial: boolean, // (optional) defaults to true mintData: boolean // (optional) defaults to false }, ... ]
- Address Mode
- Modes