Track crypto assets in Mint.com; automatically check and update wallets for various coins periodically so you'll always have an accurate understanding of current holdings
Before beginning, you'll need to:
- have the Google Chrome browser installed,
- have a Mint.com account,
- have this repository cloned locally,
- and have NodeJS and NPM installed globally.
After those prerequisites are met, follow these steps to get the script working for your needs.
- Create a new "Cash" or property account for each type of crypto asset you hold. Ex: If you hold BTC and ETH, create 2 cash accounts with whatever names you want (though choosing a reasonable acct name will help with a future step).
- Modify
index_async.jsfile to add Mint credentials (username, password). - Also in
index_async.js, uncomment the block comment marked with//UNCOMMENT BLOCK TO LIST ACCOUNTS, that is, remove the/*and*/chars at beginning and end of block. - Install all script dependencies by running
npm installin terminal, aftercding to location of repo. - Run script by executing
node index_async.js - A webdriver controlled instance of Chrome browser will open, navigate to Mint and log in. Depending on your account's security settings, you may need to go thru a 2 factor auth step at this time.
- When complete, the script will print out the list of accounts associated with the Mint user. Note down the account ID numbers (6 digit numbers) for each coin type.
- Update these account numbers by including them in the 2nd parameter to the Coin construction which occurs directly after
Coindeclaration inindex_async.js. - Also add the related addresses for each coin type in the respective arrays.
- Re-run script
node index_async.jsto finally carryout asset value lookup and USD conversion, also the value will be updated in Mint based on the configured account ID.
- TODO:DM - add contribution document and overview here