Skip to content

Simple node utility CLI for generating dummy ETH addresses and other useful things.

Notifications You must be signed in to change notification settings

nftchef/Eth-Tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

run yarn before use.

For available commands and syntax, check node index.js --help

Wallet/account tools

Simple utility for generating an array of Ethereum wallet addresses. And, a built in basic calculator to output ROUGH estimated tx cost for gas used.

generate

use node index.js generate <count> where count is the number of wallet addresses you want to generate, to generate the addresses.json file with the output wallet addresses.

Calculation tools

calc

basic calculator to output gas cost in Eth, cost = gas used * gas price

node index.js calc <gas used> <gas price in gwei>

Snapshot

Take a snapshot of current token holders (wallet addresses) for a given contract address

node index.js snapshot <contract address> <number of tokens to snapshot> [flags]

options

--output

Provenance Hash

Generate a provenance hash from a folder.

Metadata Tools

Clean empty traits

It's possible that your image generation left you with empty trait_type values, this command will remove any object with a trait_type whose sibling value is "" empty.

Firebase Firestore Tools

For use when an offchain allow-list is stored on FB

For these commands to work, you must add both the collection name, as FIREBASE_ALLOW_LIST, and a Firebase service key as FIREBASE_SERVICE_KEY, strigified object, in .env

use .env-template and rename to .env

Commands:

  • downloadList - Save the firestore allow list to the passed in file, as JSON
  • uploadList upload List of wallet addresses to a firebase FireStore
  • allowlist - get information about the firebase allow list FireStore

uploadList

node index.js uploadList ./wallets.json

Requires a source JSON file in the following format:

{
  "wallets": [
    ...
  ]
}

Pass in the path to this file relative to the cwd and each wallet will be added to the collection as the document.id

downloadList

node index.js downloadList ./dowloaded-wallets.json

Dowload the data from the allow list collection as JSON.

allowlist

Console log the collection data 'snapshot'. Useful for counting the size.

About

Simple node utility CLI for generating dummy ETH addresses and other useful things.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published