npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

crypto-scanner

v6.0.0

Published

Crypto Scanner is a privacy-oriented tool used to track ETH and token balances across multiple addresses and groups (ledgers)

Downloads

4

Readme

crypto-scanner

Crypto Scanner is a privacy-focused tool designed to help you keep track of your ETH and token balances across multiple addresses and ledgers. With support for importing external assets and pricing them in USD or other assets like ETH, it's the perfect tool for managing your entire portfolio.

What sets Crypto Scanner apart from other similar tools is its approach to data retrieval. Instead of fetching your balances from a centralized API, which can compromise your privacy and security, Crypto Scanner uses an RPC URL (http://localhost:8545 by default) to retrieve your data. This means that your balances are requested directly from your local machine, and your sensitive information remains completely private and secure.

By using this approach, Crypto Scanner ensures that your data is never transmitted over the internet or stored on a third-party server. This greatly reduces the risk of data breaches and ensures that you have complete control over your cryptocurrency portfolio.

What's more, all the data is stored in an AES256 encrypted database, ensuring that your sensitive information remains protected even if your device is compromised. With its robust security features and intuitive interface, Crypto Scanner is the ideal choice for privacy-conscious users who want to keep their cryptocurrency investments safe and secure.

Installation

The crypto-scanner tool stores the DB at <HOME_DIR>/.crypto-scanner/db by default.

Locally

git clone https://github.com/lbeder/crypto-scanner

cd crypto-scanner

pnpm install

# Or
yarn

# Or
npm install

Globally

npm install -g crypto-scanner

Or run with npx:

npx crypto-scanner

This will also allow you to run the crypto-scanner in the terminal.

Usage

General

crypto-scanner <command>

Commands:
  crypto-scanner scan      Scan all addresses and tokens
  crypto-scanner db        DB management functions
  crypto-scanner password  Password management functions
  crypto-scanner ledger    Ledger management functions
  crypto-scanner address   Address management functions
  crypto-scanner token     Token management functions
  crypto-scanner asset     Asset management functions

Options:
      --help               Show help                                                                           [boolean]
      --version            Show version number                                                                 [boolean]
      --provider-url       Web3 provider's URL                               [string] [default: "http://localhost:8545"]
  -p, --price              Query prices using Coingecko                                       [boolean] [default: false]
  -g, --global-token-list  Use global token list (derived from https://tokens.coingecko.com/ethereum/all.json)
                                                                                              [boolean] [default: false]

Scan

crypto-scanner scan

Scan all addresses and tokens

Options:
      --help                  Show help                                                                        [boolean]
      --version               Show version number                                                              [boolean]
      --provider-url          Web3 provider's URL                            [string] [default: "http://localhost:8545"]
  -p, --price                 Query prices using Coingecko                                    [boolean] [default: false]
  -g, --global-token-list     Use global token list (derived from https://tokens.coingecko.com/ethereum/all.json)
                                                                                              [boolean] [default: false]
  -r, --csv                   The CSV reports output directory (optional)                                       [string]
  -v, --verbose               Verbose mode                                                                     [boolean]
  -e, --show-empty-addresses  Show empty addresses                                            [boolean] [default: false]
  -a, --aggregate-assets      Aggregate custom-priced assets in totals (e.g., if an asset has a custom price of 3 ETH
                              per unit, then instead of showing it separately, we will aggregate its amount with the
                              total ETH amount)                                               [boolean] [default: false]

DB

crypto-scanner db

DB management functions

Commands:
  crypto-scanner db show    Show the DB
  crypto-scanner db export  Export the DB to an external file. Note that the export is *not* encrypted
  crypto-scanner db import  Import the DB from an external file. Note that the import should not be *not* encrypted

Options:
      --help               Show help                                                                           [boolean]
      --version            Show version number                                                                 [boolean]
      --provider-url       Web3 provider's URL                               [string] [default: "http://localhost:8545"]
  -p, --price              Query prices using Coingecko                                       [boolean] [default: false]
  -g, --global-token-list  Use global token list (derived from https://tokens.coingecko.com/ethereum/all.json)
                                                                                              [boolean] [default: false]

Show the DB

crypto-scanner db show

Show the DB

Options:
      --help               Show help                                                                           [boolean]
      --version            Show version number                                                                 [boolean]
      --provider-url       Web3 provider's URL                               [string] [default: "http://localhost:8545"]
  -p, --price              Query prices using Coingecko                                       [boolean] [default: false]
  -g, --global-token-list  Use global token list (derived from https://tokens.coingecko.com/ethereum/all.json)
                                                                                              [boolean] [default: false]

Export the DB

crypto-scanner db export

Export the DB to an external file. Note that the export is *not* encrypted

Options:
      --help               Show help                                                                           [boolean]
      --version            Show version number                                                                 [boolean]
      --provider-url       Web3 provider's URL                               [string] [default: "http://localhost:8545"]
  -p, --price              Query prices using Coingecko                                       [boolean] [default: false]
  -g, --global-token-list  Use global token list (derived from https://tokens.coingecko.com/ethereum/all.json)
                                                                                              [boolean] [default: false]
  -o, --output             The output file path                                                      [string] [required]

Import the DB

crypto-scanner db import

Import the DB from an external file. Note that the import should not be *not* encrypted

Options:
      --help               Show help                                                                           [boolean]
      --version            Show version number                                                                 [boolean]
      --provider-url       Web3 provider's URL                               [string] [default: "http://localhost:8545"]
  -p, --price              Query prices using Coingecko                                       [boolean] [default: false]
  -g, --global-token-list  Use global token list (derived from https://tokens.coingecko.com/ethereum/all.json)
                                                                                              [boolean] [default: false]
  -i, --input              The input file path                                                       [string] [required]

Password Management

crypto-scanner password

Password management functions

Commands:
  crypto-scanner password set  Set/change the encryption password

Options:
      --help               Show help                                                                           [boolean]
      --version            Show version number                                                                 [boolean]
      --provider-url       Web3 provider's URL                               [string] [default: "http://localhost:8545"]
  -p, --price              Query prices using Coingecko                                       [boolean] [default: false]
  -g, --global-token-list  Use global token list (derived from https://tokens.coingecko.com/ethereum/all.json)
                                                                                              [boolean] [default: false]

Set the Password

crypto-scanner password set

Set/change the encryption password

Options:
      --help               Show help                                                                           [boolean]
      --version            Show version number                                                                 [boolean]
      --provider-url       Web3 provider's URL                               [string] [default: "http://localhost:8545"]
  -p, --price              Query prices using Coingecko                                       [boolean] [default: false]
  -g, --global-token-list  Use global token list (derived from https://tokens.coingecko.com/ethereum/all.json)
                                                                                              [boolean] [default: false]

Ledger Management

crypto-scanner ledger

Ledger management functions

Commands:
  crypto-scanner ledger add     Add a new named ledger
  crypto-scanner ledger remove  Remove an existing ledger

Options:
      --help               Show help                                                                           [boolean]
      --version            Show version number                                                                 [boolean]
      --provider-url       Web3 provider's URL                               [string] [default: "http://localhost:8545"]
  -p, --price              Query prices using Coingecko                                       [boolean] [default: false]
  -g, --global-token-list  Use global token list (derived from https://tokens.coingecko.com/ethereum/all.json)
                                                                                              [boolean] [default: false]

Add Ledger

crypto-scanner ledger add

Add a new ledger

Options:
      --help               Show help                                                                           [boolean]
      --version            Show version number                                                                 [boolean]
      --provider-url       Web3 provider's URL                               [string] [default: "http://localhost:8545"]
  -p, --price              Query prices using Coingecko                                       [boolean] [default: false]
  -g, --global-token-list  Use global token list (derived from https://tokens.coingecko.com/ethereum/all.json)
                                                                                              [boolean] [default: false]
      --name               The name of the ledger                                                    [string] [required]

Remove Ledger

crypto-scanner ledger remove

Remove an existing ledger

Options:
      --help               Show help                                                                           [boolean]
      --version            Show version number                                                                 [boolean]
      --provider-url       Web3 provider's URL                               [string] [default: "http://localhost:8545"]
  -p, --price              Query prices using Coingecko                                       [boolean] [default: false]
  -g, --global-token-list  Use global token list (derived from https://tokens.coingecko.com/ethereum/all.json)
                                                                                              [boolean] [default: false]
      --name               The name of the ledger                                                    [string] [required]

Address Management

crypto-scanner address

Address management functions

Commands:
  crypto-scanner address add     Add an address or a list of space-separated addresses to a named ledger
  crypto-scanner address remove  Remove an address or a list of space-separated addresses from a named ledger

Options:
      --help               Show help                                                                           [boolean]
      --version            Show version number                                                                 [boolean]
      --provider-url       Web3 provider's URL                               [string] [default: "http://localhost:8545"]
  -p, --price              Query prices using Coingecko                                       [boolean] [default: false]
  -g, --global-token-list  Use global token list (derived from https://tokens.coingecko.com/ethereum/all.json)
                                                                                              [boolean] [default: false]

Add Addresses

crypto-scanner address add

Add an address or a list of space-separated addresses to a named ledger

Options:
      --help               Show help                                                                           [boolean]
      --version            Show version number                                                                 [boolean]
      --provider-url       Web3 provider's URL                               [string] [default: "http://localhost:8545"]
  -p, --price              Query prices using Coingecko                                       [boolean] [default: false]
  -g, --global-token-list  Use global token list (derived from https://tokens.coingecko.com/ethereum/all.json)
                                                                                              [boolean] [default: false]
      --name               The name of the ledger                                                    [string] [required]
      --addresses          The address (or multiple addresses) to add                                 [array] [required]
      --notes              The address notes (or multiple notes) to add                                          [array]

Remove Addresses

crypto-scanner address remove

Remove an address or a list of space-separated addresses from a named ledger

Options:
      --help               Show help                                                                           [boolean]
      --version            Show version number                                                                 [boolean]
      --provider-url       Web3 provider's URL                               [string] [default: "http://localhost:8545"]
  -p, --price              Query prices using Coingecko                                       [boolean] [default: false]
  -g, --global-token-list  Use global token list (derived from https://tokens.coingecko.com/ethereum/all.json)
                                                                                              [boolean] [default: false]
      --name               The name of the ledger                                                    [string] [required]
      --data               The address (or multiple addresses) to remove                           [array] [default: []]

Token Management

crypto-scanner token

Token management functions

Commands:
  crypto-scanner token add     Add a new token
  crypto-scanner token remove  Remove a token from

Options:
      --help               Show help                                                                           [boolean]
      --version            Show version number                                                                 [boolean]
      --provider-url       Web3 provider's URL                               [string] [default: "http://localhost:8545"]
  -p, --price              Query prices using Coingecko                                       [boolean] [default: false]
  -g, --global-token-list  Use global token list (derived from https://tokens.coingecko.com/ethereum/all.json)
                                                                                              [boolean] [default: false]

Add Tokens

crypto-scanner token add

Add a new token

Options:
      --help               Show help                                                                           [boolean]
      --version            Show version number                                                                 [boolean]
      --provider-url       Web3 provider's URL                               [string] [default: "http://localhost:8545"]
  -p, --price              Query prices using Coingecko                                       [boolean] [default: false]
  -g, --global-token-list  Use global token list (derived from https://tokens.coingecko.com/ethereum/all.json)
                                                                                              [boolean] [default: false]
      --symbol             The symbol of the token                                                   [string] [required]
      --address            The address of the token                                                  [string] [required]
      --decimals           The decimals of the token                                              [number] [default: 18]

Remove Tokens

crypto-scanner token remove

Remove a token from

Options:
      --help               Show help                                                                           [boolean]
      --version            Show version number                                                                 [boolean]
      --provider-url       Web3 provider's URL                               [string] [default: "http://localhost:8545"]
  -p, --price              Query prices using Coingecko                                       [boolean] [default: false]
  -g, --global-token-list  Use global token list (derived from https://tokens.coingecko.com/ethereum/all.json)
                                                                                              [boolean] [default: false]
      --symbol             The symbol of the token                                                   [string] [required]

Asset Management

crypto-scanner asset

Asset management functions

Commands:
  crypto-scanner asset add     Add a new asset
  crypto-scanner asset update  Update an existing asset
  crypto-scanner asset remove  Remove an existing asset

Options:
      --help               Show help                                                                           [boolean]
      --version            Show version number                                                                 [boolean]
      --provider-url       Web3 provider's URL                               [string] [default: "http://localhost:8545"]
  -p, --price              Query prices using Coingecko                                       [boolean] [default: false]
  -g, --global-token-list  Use global token list (derived from https://tokens.coingecko.com/ethereum/all.json)
                                                                                              [boolean] [default: false]

Add Asset

crypto-scanner asset add

Add a new asset

Options:
      --help               Show help                                                                           [boolean]
      --version            Show version number                                                                 [boolean]
      --provider-url       Web3 provider's URL                               [string] [default: "http://localhost:8545"]
  -p, --price              Query prices using Coingecko                                       [boolean] [default: false]
  -g, --global-token-list  Use global token list (derived from https://tokens.coingecko.com/ethereum/all.json)
                                                                                              [boolean] [default: false]
      --name               The name of the asset                                                     [string] [required]
      --quantity           The quantity of the asset                                                 [number] [required]
      --unit-price         The unit price of the asset                                                          [number]
      --symbol             The symbol of the token the asset is priced in (optional)                            [string]

Update Asset

crypto-scanner asset update

Update an existing asset

Options:
      --help               Show help                                                                           [boolean]
      --version            Show version number                                                                 [boolean]
      --provider-url       Web3 provider's URL                               [string] [default: "http://localhost:8545"]
  -p, --price              Query prices using Coingecko                                       [boolean] [default: false]
  -g, --global-token-list  Use global token list (derived from https://tokens.coingecko.com/ethereum/all.json)
                                                                                              [boolean] [default: false]
      --name               The name of the asset                                                     [string] [required]
      --quantity           The new quantity of the asset                                             [number] [required]
      --unit-price         The new unit price of the asset                                                      [number]
      --symbol             The symbol of the token the asset is priced in                                       [string]

Remove Asset

crypto-scanner asset remove

Remove an existing asset

Options:
      --help               Show help                                                                           [boolean]
      --version            Show version number                                                                 [boolean]
      --provider-url       Web3 provider's URL                               [string] [default: "http://localhost:8545"]
  -p, --price              Query prices using Coingecko                                       [boolean] [default: false]
  -g, --global-token-list  Use global token list (derived from https://tokens.coingecko.com/ethereum/all.json)
                                                                                              [boolean] [default: false]
      --name               The name of the asset                                                     [string] [required]

Example

Adding Addresses

Let's start by adding the following addresses to the following named ledgers:

  • Binance:
    • 0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8
    • 0xF977814e90dA44bFA03b6295A0616a897441aceC
  • Kraken:
    • 0xDA9dfA130Df4dE4673b89022EE50ff26f6EA73Cf
crypto-scanner address add --name "Binance" --addresses 0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8 0xF977814e90dA44bFA03b6295A0616a897441aceC --notes "Binance 7" "Binance 8"

? Enter password [hidden]

Added 0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8 to Binance (with a note: "Binance 7")
Added 0xF977814e90dA44bFA03b6295A0616a897441aceC to Binance (with a note: "Binance 8")
crypto-scanner address add --name "Kraken" --addresses 0xDA9dfA130Df4dE4673b89022EE50ff26f6EA73Cf

? Enter password [hidden]

Added 0xDA9dfA130Df4dE4673b89022EE50ff26f6EA73Cf to Kraken
crypto-scanner address add --name "Coinbase" --addresses 0x71660c4005BA85c37ccec55d0C4493E66Fe775d3 --notes "Coinbase 1"

? Enter password [hidden]

Added 0x71660c4005BA85c37ccec55d0C4493E66Fe775d3 to Coinbase (with a note: "Coinbase 1")

We can see that the DB has been updated:

crypto-scanner db show

? Enter password [hidden]

DB
‾‾
Version: 1

Ledgers
‾‾‾‾‾‾‾
┌──────────┬────────────────────────────────────────────┬────────────┐
│ Ledger   │ Address                                    │ Note       │
├──────────┼────────────────────────────────────────────┼────────────┤
│ Binance  │ 0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8 │ Binance 7  │
├──────────┼────────────────────────────────────────────┼────────────┤
│ Binance  │ 0xF977814e90dA44bFA03b6295A0616a897441aceC │ Binance 8  │
├──────────┼────────────────────────────────────────────┼────────────┤
│ Kraken   │ 0xDA9dfA130Df4dE4673b89022EE50ff26f6EA73Cf │            │
├──────────┼────────────────────────────────────────────┼────────────┤
│ Coinbase │ 0x71660c4005BA85c37ccec55d0C4493E66Fe775d3 │ Coinbase 1 │
└──────────┴────────────────────────────────────────────┴────────────┘

As you can see, by default the known token list is empty, therefore scanning the balances will only return ETH amounts:

crypto-scanner scan

? Enter password [hidden]

Scanning all addresses and tokens...

Finished | ████████████████████████████████████████ 100% | ETA: 0s | 4/4
Finished | ████████████████████████████████████████ 100% | ETA: NULLs | 0/0

Total Amounts
‾‾‾‾‾‾‾‾‾‾‾‾‾
┌──────┬──────────────┐
│ Name │ Amount       │
├──────┼──────────────┤
│ ETH  │ 4,254,204.37 │
└──────┴──────────────┘

You can also provide the -v/--verbose flag to print verbose amounts for all addresses and ledgers:

crypto-scanner scan -v

? Enter password [hidden]

Scanning all addresses and tokens...

Finished | ████████████████████████████████████████ 100% | ETA: 0s | 4/4
Finished | ████████████████████████████████████████ 100% | ETA: NULLs | 0/0

Addresses
‾‾‾‾‾‾‾‾‾
┌──────────┬────────────────────────────────────────────┬──────────────┬────────────┐
│ Ledger   │ Address                                    │ ETH          │ Note       │
├──────────┼────────────────────────────────────────────┼──────────────┼────────────┤
│ Binance  │ 0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8 │ 1,996,008.38 │ Binance 7  │
├──────────┼────────────────────────────────────────────┼──────────────┼────────────┤
│ Binance  │ 0xF977814e90dA44bFA03b6295A0616a897441aceC │ 647,701.18   │ Binance 8  │
├──────────┼────────────────────────────────────────────┼──────────────┼────────────┤
│ Kraken   │ 0xDA9dfA130Df4dE4673b89022EE50ff26f6EA73Cf │ 1,598,923.57 │            │
├──────────┼────────────────────────────────────────────┼──────────────┼────────────┤
│ Coinbase │ 0x71660c4005BA85c37ccec55d0C4493E66Fe775d3 │ 11,571.25    │ Coinbase 1 │
├──────────┼────────────────────────────────────────────┼──────────────┼────────────┤
│          │ Total                                      │ 4,254,204.37 │            │
├──────────┼────────────────────────────────────────────┼──────────────┼────────────┤
│          │                                            │ ETH          │            │
└──────────┴────────────────────────────────────────────┴──────────────┴────────────┘

Ledgers
‾‾‾‾‾‾‾
┌──────────┬──────────────┐
│ Ledger   │ ETH          │
├──────────┼──────────────┤
│ Binance  │ 2,643,709.56 │
├──────────┼──────────────┤
│ Kraken   │ 1,598,923.57 │
├──────────┼──────────────┤
│ Coinbase │ 11,571.25    │
├──────────┼──────────────┤
│ Total    │ 4,254,204.37 │
├──────────┼──────────────┤
│          │ ETH          │
└──────────┴──────────────┘

Total Amounts
‾‾‾‾‾‾‾‾‾‾‾‾‾
┌──────┬──────────────┐
│ Name │ Amount       │
├──────┼──────────────┤
│ ETH  │ 4,254,204.37 │
└──────┴──────────────┘

Adding Tokens

Let's add the USDT, USDC, DAI, and LINKtokens and try again:

crypto-scanner token add --symbol USDT --address 0xdAC17F958D2ee523a2206206994597C13D831ec7 --decimals 6

? Enter password [hidden]

Added USDT at 0xdAC17F958D2ee523a2206206994597C13D831ec7 with 6 decimals
crypto-scanner token add --symbol USDC --address 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 --decimals 6

? Enter password [hidden]

Added USDC at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 with 6 decimals
crypto-scanner token add --symbol DAI --address 0x6B175474E89094C44Da98b954EedeAC495271d0F

? Enter password [hidden]

Added DAI at 0x6B175474E89094C44Da98b954EedeAC495271d0F with 18 decimals
crypto-scanner token add --symbol LINK --address 0x514910771AF9Ca656af840dff83E8264EcF986CA

? Enter password [hidden]

Added LINK at 0x514910771AF9Ca656af840dff83E8264EcF986CA with 18 decimals

You can check and verify that the tokens are now part of the DB:

crypto-scanner db show

? Enter password [hidden]

DB
‾‾
Version: 1

Ledgers
‾‾‾‾‾‾‾
┌──────────┬────────────────────────────────────────────┬────────────┐
│ Ledger   │ Address                                    │ Note       │
├──────────┼────────────────────────────────────────────┼────────────┤
│ Binance  │ 0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8 │ Binance 7  │
├──────────┼────────────────────────────────────────────┼────────────┤
│ Binance  │ 0xF977814e90dA44bFA03b6295A0616a897441aceC │ Binance 8  │
├──────────┼────────────────────────────────────────────┼────────────┤
│ Kraken   │ 0xDA9dfA130Df4dE4673b89022EE50ff26f6EA73Cf │            │
├──────────┼────────────────────────────────────────────┼────────────┤
│ Coinbase │ 0x71660c4005BA85c37ccec55d0C4493E66Fe775d3 │ Coinbase 1 │
└──────────┴────────────────────────────────────────────┴────────────┘

Tokens
‾‾‾‾‾‾
┌────────┬────────────────────────────────────────────┬──────────┐
│ Symbol │ Address                                    │ Decimals │
├────────┼────────────────────────────────────────────┼──────────┤
│ USDT   │ 0xdAC17F958D2ee523a2206206994597C13D831ec7 │ 6        │
├────────┼────────────────────────────────────────────┼──────────┤
│ USDC   │ 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 │ 6        │
├────────┼────────────────────────────────────────────┼──────────┤
│ DAI    │ 0x6B175474E89094C44Da98b954EedeAC495271d0F │ 18       │
├────────┼────────────────────────────────────────────┼──────────┤
│ LINK   │ 0x514910771AF9Ca656af840dff83E8264EcF986CA │ 18       │
└────────┴────────────────────────────────────────────┴──────────┘

Let's scan the balances again:

crypto-scanner scan

? Enter password [hidden]

Scanning all addresses and tokens...

Finished | ████████████████████████████████████████ 100% | ETA: 0s | 4/4
Finished | ████████████████████████████████████████ 100% | ETA: 0s | 4/4

Total Amounts
‾‾‾‾‾‾‾‾‾‾‾‾‾
┌──────┬──────────────────┐
│ Name │ Amount           │
├──────┼──────────────────┤
│ ETH  │ 4,254,204.33     │
├──────┼──────────────────┤
│ USDT │ 5,325,198,659.87 │
├──────┼──────────────────┤
│ USDC │ 300,001,622.94   │
├──────┼──────────────────┤
│ DAI  │ 0.0002           │
├──────┼──────────────────┤
│ LINK │ 54,653,254.58    │
└──────┴──────────────────┘

Let's scan again with the -v/--verbose flag:

crypto-scanner scan -v

? Enter password [hidden]

Scanning all addresses and tokens...

Finished | ████████████████████████████████████████ 100% | ETA: 0s | 4/4
Finished | ████████████████████████████████████████ 100% | ETA: 0s | 4/4

Addresses
‾‾‾‾‾‾‾‾‾
┌──────────┬────────────────────────────────────────────┬──────────────┬──────────────────┬────────────────┬────────┬───────────────┬────────────┐
│ Ledger   │ Address                                    │ ETH          │ USDT             │ USDC           │ DAI    │ LINK          │ Note       │
├──────────┼────────────────────────────────────────────┼──────────────┼──────────────────┼────────────────┼────────┼───────────────┼────────────┤
│ Binance  │ 0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8 │ 1,996,008.38 │ 162              │ 0              │ 0      │ 5,000,000     │ Binance 7  │
├──────────┼────────────────────────────────────────────┼──────────────┼──────────────────┼────────────────┼────────┼───────────────┼────────────┤
│ Binance  │ 0xF977814e90dA44bFA03b6295A0616a897441aceC │ 647,701.18   │ 5,325,198,345.11 │ 300,000,000    │ 0      │ 40,153,254.58 │ Binance 8  │
├──────────┼────────────────────────────────────────────┼──────────────┼──────────────────┼────────────────┼────────┼───────────────┼────────────┤
│ Kraken   │ 0xDA9dfA130Df4dE4673b89022EE50ff26f6EA73Cf │ 1,598,923.57 │ 142              │ 0              │ 0      │ 9,500,000     │            │
├──────────┼────────────────────────────────────────────┼──────────────┼──────────────────┼────────────────┼────────┼───────────────┼────────────┤
│ Coinbase │ 0x71660c4005BA85c37ccec55d0C4493E66Fe775d3 │ 11,571.2     │ 10.76            │ 1,622.94       │ 0.0002 │ 0             │ Coinbase 1 │
├──────────┼────────────────────────────────────────────┼──────────────┼──────────────────┼────────────────┼────────┼───────────────┼────────────┤
│          │ Total                                      │ 4,254,204.33 │ 5,325,198,659.87 │ 300,001,622.94 │ 0.0002 │ 54,653,254.58 │            │
├──────────┼────────────────────────────────────────────┼──────────────┼──────────────────┼────────────────┼────────┼───────────────┼────────────┤
│          │                                            │ ETH          │ USDT             │ USDC           │ DAI    │ LINK          │            │
└──────────┴────────────────────────────────────────────┴──────────────┴──────────────────┴────────────────┴────────┴───────────────┴────────────┘

Ledgers
‾‾‾‾‾‾‾
┌──────────┬──────────────┬──────────────────┬────────────────┬────────┬───────────────┐
│ Ledger   │ ETH          │ USDT             │ USDC           │ DAI    │ LINK          │
├──────────┼──────────────┼──────────────────┼────────────────┼────────┼───────────────┤
│ Binance  │ 2,643,709.56 │ 5,325,198,507.11 │ 300,000,000    │ 0      │ 45,153,254.58 │
├──────────┼──────────────┼──────────────────┼────────────────┼────────┼───────────────┤
│ Kraken   │ 1,598,923.57 │ 142              │ 0              │ 0      │ 9,500,000     │
├──────────┼──────────────┼──────────────────┼────────────────┼────────┼───────────────┤
│ Coinbase │ 11,571.2     │ 10.76            │ 1,622.94       │ 0.0002 │ 0             │
├──────────┼──────────────┼──────────────────┼────────────────┼────────┼───────────────┤
│ Total    │ 4,254,204.33 │ 5,325,198,659.87 │ 300,001,622.94 │ 0.0002 │ 54,653,254.58 │
├──────────┼──────────────┼──────────────────┼────────────────┼────────┼───────────────┤
│          │ ETH          │ USDT             │ USDC           │ DAI    │ LINK          │
└──────────┴──────────────┴──────────────────┴────────────────┴────────┴───────────────┘

Total Amounts
‾‾‾‾‾‾‾‾‾‾‾‾‾
┌──────┬──────────────────┐
│ Name │ Amount           │
├──────┼──────────────────┤
│ ETH  │ 4,254,204.33     │
├──────┼──────────────────┤
│ USDT │ 5,325,198,659.87 │
├──────┼──────────────────┤
│ USDC │ 300,001,622.94   │
├──────┼──────────────────┤
│ DAI  │ 0.0002           │
├──────┼──────────────────┤
│ LINK │ 54,653,254.58    │
└──────┴──────────────────┘

Showing USD Values

If you are interested in showing the USD values of the balances, you can pass the optional -p/--price flag which will query the prices using [https://www.coingecko.com/](CoinGecko API):

crypto-scanner scan -p

Querying prices. This operation may take a very long time...

Finished | ████████████████████████████████████████ 100% | ETA: 0s | 4/4

Scanning all addresses and tokens...

Finished | ████████████████████████████████████████ 100% | ETA: 0s | 4/4
Finished | ████████████████████████████████████████ 100% | ETA: 0s | 4/4

Prices
‾‾‾‾‾‾
┌────────┬───────────┐
│ Symbol │ Price     │
├────────┼───────────┤
│ DAI    │ $0.999    │
├────────┼───────────┤
│ ETH    │ $2,635.77 │
├────────┼───────────┤
│ LINK   │ $19.82    │
├────────┼───────────┤
│ USDC   │ $1        │
├────────┼───────────┤
│ USDT   │ $1        │
└────────┴───────────┘

Total Amounts
‾‾‾‾‾‾‾‾‾‾‾‾‾
┌──────┬──────────────────┬────────────────────┬──────────────────┐
│ Name │ Amount           │ Value              │ % of Total Value │
├──────┼──────────────────┼────────────────────┼──────────────────┤
│ ETH  │ 4,254,204.32     │ $11,213,104,126.64 │ 62.5678          │
├──────┼──────────────────┼────────────────────┼──────────────────┤
│ USDT │ 5,325,198,659.87 │ $5,325,198,659.87  │ 29.7140          │
├──────┼──────────────────┼────────────────────┼──────────────────┤
│ USDC │ 300,001,622.94   │ $300,001,622.94    │ 1.67397          │
├──────┼──────────────────┼────────────────────┼──────────────────┤
│ DAI  │ 0.0002           │ $0.0002            │ 9.95097e-13      │
├──────┼──────────────────┼────────────────────┼──────────────────┤
│ LINK │ 54,653,254.58    │ $1,083,227,505.76  │ 6.04428          │
├──────┼──────────────────┼────────────────────┼──────────────────┤
│      │ Total Value      │ $17,921,531,915.21 │                  │
└──────┴──────────────────┴────────────────────┴──────────────────┘

You can also combine both the -p/--price and the -v/--verbose flags for the full output with an aggregated total $ values and holding percentages:

crypto-scanner scan -v -p

Querying prices. This operation may take a very long time...

Finished | ████████████████████████████████████████ 100% | ETA: 0s | 4/4

Scanning all addresses and tokens...

Finished | ████████████████████████████████████████ 100% | ETA: 0s | 4/4
Finished | ████████████████████████████████████████ 100% | ETA: 0s | 4/4

Prices
‾‾‾‾‾‾
┌────────┬───────────┐
│ Symbol │ Price     │
├────────┼───────────┤
│ DAI    │ $0.999    │
├────────┼───────────┤
│ ETH    │ $2,635.77 │
├────────┼───────────┤
│ LINK   │ $19.82    │
├────────┼───────────┤
│ USDC   │ $1        │
├────────┼───────────┤
│ USDT   │ $1        │
└────────┴───────────┘

Addresses
‾‾‾‾‾‾‾‾‾
┌──────────┬────────────────────────────────────────────┬────────────────────┬───────────────────┬─────────────────┬─────────┬───────────────────┬────────────┐
│ Ledger   │ Address                                    │ ETH                │ USDT              │ USDC            │ DAI     │ LINK              │ Note       │
├──────────┼────────────────────────────────────────────┼────────────────────┼───────────────────┼─────────────────┼─────────┼───────────────────┼────────────┤
│ Binance  │ 0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8 │ 1,996,008.38       │ 162               │ 0               │ 0       │ 5,000,000         │ Binance 7  │
├──────────┼────────────────────────────────────────────┼────────────────────┼───────────────────┼─────────────────┼─────────┼───────────────────┼────────────┤
│ Binance  │ 0xF977814e90dA44bFA03b6295A0616a897441aceC │ 647,701.18         │ 5,325,198,345.11  │ 300,000,000     │ 0       │ 40,153,254.58     │ Binance 8  │
├──────────┼────────────────────────────────────────────┼────────────────────┼───────────────────┼─────────────────┼─────────┼───────────────────┼────────────┤
│ Kraken   │ 0xDA9dfA130Df4dE4673b89022EE50ff26f6EA73Cf │ 1,598,923.57       │ 142               │ 0               │ 0       │ 9,500,000         │            │
├──────────┼────────────────────────────────────────────┼────────────────────┼───────────────────┼─────────────────┼─────────┼───────────────────┼────────────┤
│ Coinbase │ 0x71660c4005BA85c37ccec55d0C4493E66Fe775d3 │ 11,571.19          │ 10.76             │ 1,622.94        │ 0.0002  │ 0                 │ Coinbase 1 │
├──────────┼────────────────────────────────────────────┼────────────────────┼───────────────────┼─────────────────┼─────────┼───────────────────┼────────────┤
│          │ Total                                      │ 4,254,204.32       │ 5,325,198,659.87  │ 300,001,622.94  │ 0.0002  │ 54,653,254.58     │            │
├──────────┼────────────────────────────────────────────┼────────────────────┼───────────────────┼─────────────────┼─────────┼───────────────────┼────────────┤
│          │                                            │ ETH                │ USDT              │ USDC            │ DAI     │ LINK              │            │
├──────────┼────────────────────────────────────────────┼────────────────────┼───────────────────┼─────────────────┼─────────┼───────────────────┼────────────┤
│          │ Total Value                                │ $11,213,104,126.64 │ $5,325,198,659.87 │ $300,001,622.94 │ $0.0002 │ $1,083,227,505.76 │            │
└──────────┴────────────────────────────────────────────┴────────────────────┴───────────────────┴─────────────────┴─────────┴───────────────────┴────────────┘

Ledgers
‾‾‾‾‾‾‾
┌─────────────┬────────────────────┬───────────────────┬─────────────────┬─────────┬───────────────────┐
│ Ledger      │ ETH                │ USDT              │ USDC            │ DAI     │ LINK              │
├─────────────┼────────────────────┼───────────────────┼─────────────────┼─────────┼───────────────────┤
│ Binance     │ 2,643,709.56       │ 5,325,198,507.11  │ 300,000,000     │ 0       │ 45,153,254.58     │
├─────────────┼────────────────────┼───────────────────┼─────────────────┼─────────┼───────────────────┤
│ Kraken      │ 1,598,923.57       │ 142               │ 0               │ 0       │ 9,500,000         │
├─────────────┼────────────────────┼───────────────────┼─────────────────┼─────────┼───────────────────┤
│ Coinbase    │ 11,571.19          │ 10.76             │ 1,622.94        │ 0.0002  │ 0                 │
├─────────────┼────────────────────┼───────────────────┼─────────────────┼─────────┼───────────────────┤
│ Total       │ 4,254,204.32       │ 5,325,198,659.87  │ 300,001,622.94  │ 0.0002  │ 54,653,254.58     │
├─────────────┼────────────────────┼───────────────────┼─────────────────┼─────────┼───────────────────┤
│             │ ETH                │ USDT              │ USDC            │ DAI     │ LINK              │
├─────────────┼────────────────────┼───────────────────┼─────────────────┼─────────┼───────────────────┤
│ Total Value │ $11,213,104,126.64 │ $5,325,198,659.87 │ $300,001,622.94 │ $0.0002 │ $1,083,227,505.76 │
└─────────────┴────────────────────┴───────────────────┴─────────────────┴─────────┴───────────────────┘

Total Amounts
‾‾‾‾‾‾‾‾‾‾‾‾‾
┌──────┬──────────────────┬────────────────────┬──────────────────┐
│ Name │ Amount           │ Value              │ % of Total Value │
├──────┼──────────────────┼────────────────────┼──────────────────┤
│ ETH  │ 4,254,204.32     │ $11,213,104,126.64 │ 62.5678          │
├──────┼──────────────────┼────────────────────┼──────────────────┤
│ USDT │ 5,325,198,659.87 │ $5,325,198,659.87  │ 29.7140          │
├──────┼──────────────────┼────────────────────┼──────────────────┤
│ USDC │ 300,001,622.94   │ $300,001,622.94    │ 1.67397          │
├──────┼──────────────────┼────────────────────┼──────────────────┤
│ DAI  │ 0.0002           │ $0.0002            │ 9.95097e-13      │
├──────┼──────────────────┼────────────────────┼──────────────────┤
│ LINK │ 54,653,254.58    │ $1,083,227,505.76  │ 6.04428          │
├──────┼──────────────────┼────────────────────┼──────────────────┤
│      │ Total Value      │ $17,921,531,915.21 │                  │
└──────┴──────────────────┴────────────────────┴──────────────────┘

Adding Assets

In addition to ETH and token amounts, you can also add static assets, by specifying their name, quantity, and unit prices. For example:

crypto-scanner asset add --name Gold --quantity 100 --unit-price 2018.25

? Enter password [hidden]

Added 100 units of Gold at the price of 2018.25 USD per unit
crypto-scanner asset add --name "Real Estate" --quantity 1 --unit-price 1000000

? Enter password [hidden]

Added 1 units of Real Estate at the price of 1000000 USD per unit

You can check and verify that the assets are now part of the DB:

crypto-scanner db show

? Enter password [hidden]

DB
‾‾
Version: 1

Ledgers
‾‾‾‾‾‾‾
┌──────────┬────────────────────────────────────────────┬────────────┐
│ Ledger   │ Address                                    │ Note       │
├──────────┼────────────────────────────────────────────┼────────────┤
│ Binance  │ 0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8 │ Binance 7  │
├──────────┼────────────────────────────────────────────┼────────────┤
│ Binance  │ 0xF977814e90dA44bFA03b6295A0616a897441aceC │ Binance 8  │
├──────────┼────────────────────────────────────────────┼────────────┤
│ Kraken   │ 0xDA9dfA130Df4dE4673b89022EE50ff26f6EA73Cf │            │
├──────────┼────────────────────────────────────────────┼────────────┤
│ Coinbase │ 0x71660c4005BA85c37ccec55d0C4493E66Fe775d3 │ Coinbase 1 │
└──────────┴────────────────────────────────────────────┴────────────┘

Tokens
‾‾‾‾‾‾
┌────────┬────────────────────────────────────────────┬──────────┐
│ Symbol │ Address                                    │ Decimals │
├────────┼────────────────────────────────────────────┼──────────┤
│ USDT   │ 0xdAC17F958D2ee523a2206206994597C13D831ec7 │ 6        │
├────────┼────────────────────────────────────────────┼──────────┤
│ USDC   │ 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 │ 6        │
├────────┼────────────────────────────────────────────┼──────────┤
│ DAI    │ 0x6B175474E89094C44Da98b954EedeAC495271d0F │ 18       │
├────────┼────────────────────────────────────────────┼──────────┤
│ LINK   │ 0x514910771AF9Ca656af840dff83E8264EcF986CA │ 18       │
└────────┴────────────────────────────────────────────┴──────────┘

Assets
‾‾‾‾‾‾
┌─────────────┬──────────┬────────────┐
│ Name        │ Quantity │ Price      │
├─────────────┼──────────┼────────────┤
│ Gold        │ 100      │ $2,018.25  │
├─────────────┼──────────┼────────────┤
│ Real Estate │ 1        │ $1,000,000 │
└─────────────┴──────────┴────────────┘

You can also see that asset amounts are aggregated as well:

crypto-scanner scan -p -v

? Enter password [hidden]

Querying prices. This operation may take a very long time...

Finished | ████████████████████████████████████████ 100% | ETA: 0s | 4/4

Scanning all addresses and tokens...

Finished | ████████████████████████████████████████ 100% | ETA: 0s | 4/4
Finished | ████████████████████████████████████████ 100% | ETA: 0s | 4/4

Prices
‾‾‾‾‾‾
┌─────────────┬────────────┐
│ Symbol      │ Price      │
├─────────────┼────────────┤
│ DAI         │ $0.999     │
├─────────────┼────────────┤
│ ETH         │ $2,635.77  │
├─────────────┼────────────┤
│ Gold        │ $2,018.25  │
├─────────────┼────────────┤
│ LINK        │ $19.82     │
├─────────────┼────────────┤
│ Real Estate │ $1,000,000 │
├─────────────┼────────────┤
│ USDC        │ $1         │
├─────────────┼────────────┤
│ USDT        │ $1         │
└─────────────┴────────────┘

Addresses
‾‾‾‾‾‾‾‾‾
┌──────────┬────────────────────────────────────────────┬────────────────────┬───────────────────┬─────────────────┬─────────┬───────────────────┬────────────┐
│ Ledger   │ Address                                    │ ETH                │ USDT              │ USDC            │ DAI     │ LINK              │ Note       │
├──────────┼────────────────────────────────────────────┼────────────────────┼───────────────────┼─────────────────┼─────────┼───────────────────┼────────────┤
│ Binance  │ 0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8 │ 1,996,008.38       │ 162               │ 0               │ 0       │ 5,000,000         │ Binance 7  │
├──────────┼────────────────────────────────────────────┼────────────────────┼───────────────────┼─────────────────┼─────────┼───────────────────┼────────────┤
│ Binance  │ 0xF977814e90dA44bFA03b6295A0616a897441aceC │ 647,701.18         │ 5,325,198,345.11  │ 300,000,000     │ 0       │ 40,153,254.58     │ Binance 8  │
├──────────┼────────────────────────────────────────────┼────────────────────┼───────────────────┼─────────────────┼─────────┼───────────────────┼────────────┤
│ Kraken   │ 0xDA9dfA130Df4dE4673b89022EE50ff26f6EA73Cf │ 1,598,923.57       │ 142               │ 0               │ 0       │ 9,500,000         │            │
├──────────┼────────────────────────────────────────────┼────────────────────┼───────────────────┼─────────────────┼─────────┼───────────────────┼────────────┤
│ Coinbase │ 0x71660c4005BA85c37ccec55d0C4493E66Fe775d3 │ 11,571.16          │ 10.76             │ 1,622.94        │ 0.0002  │ 0                 │ Coinbase 1 │
├──────────┼────────────────────────────────────────────┼────────────────────┼───────────────────┼─────────────────┼─────────┼───────────────────┼────────────┤
│          │ Total                                      │ 4,254,204.29       │ 5,325,198,659.87  │ 300,001,622.94  │ 0.0002  │ 54,653,254.58     │            │
├──────────┼────────────────────────────────────────────┼────────────────────┼───────────────────┼─────────────────┼─────────┼───────────────────┼────────────┤
│          │                                            │ ETH                │ USDT              │ USDC            │ DAI     │ LINK              │            │
├──────────┼────────────────────────────────────────────┼────────────────────┼───────────────────┼─────────────────┼─────────┼───────────────────┼────────────┤
│          │ Total Value                                │ $11,213,104,040.03 │ $5,325,198,659.87 │ $300,001,622.94 │ $0.0002 │ $1,083,227,505.76 │            │
└──────────┴────────────────────────────────────────────┴────────────────────┴───────────────────┴─────────────────┴─────────┴───────────────────┴────────────┘

Ledgers
‾‾‾‾‾‾‾
┌─────────────┬────────────────────┬───────────────────┬─────────────────┬─────────┬───────────────────┐
│ Ledger      │ ETH                │ USDT              │ USDC            │ DAI     │ LINK              │
├─────────────┼────────────────────┼───────────────────┼─────────────────┼─────────┼───────────────────┤
│ Binance     │ 2,643,709.56       │ 5,325,198,507.11  │ 300,000,000     │ 0       │ 45,153,254.58     │
├─────────────┼────────────────────┼───────────────────┼─────────────────┼─────────┼───────────────────┤
│ Kraken      │ 1,598,923.57       │ 142               │ 0               │ 0       │ 9,500,000         │
├─────────────┼────────────────────┼───────────────────┼─────────────────┼─────────┼───────────────────┤
│ Coinbase    │ 11,571.16          │ 10.76             │ 1,622.94        │ 0.0002  │ 0                 │
├─────────────┼────────────────────┼───────────────────┼─────────────────┼─────────┼───────────────────┤
│ Total       │ 4,254,204.29       │ 5,325,198,659.87  │ 300,001,622.94  │ 0.0002  │ 54,653,254.58     │
├─────────────┼────────────────────┼───────────────────┼─────────────────┼─────────┼───────────────────┤
│             │ ETH                │ USDT              │ USDC            │ DAI     │ LINK              │
├─────────────┼────────────────────┼───────────────────┼─────────────────┼─────────┼───────────────────┤
│ Total Value │ $11,213,104,040.03 │ $5,325,198,659.87 │ $300,001,622.94 │ $0.0002 │ $1,083,227,505.76 │
└─────────────┴────────────────────┴───────────────────┴─────────────────┴─────────┴───────────────────┘

Assets
‾‾‾‾‾‾
┌─────────────┬──────────┬────────────┬────────────┐
│ Name        │ Quantity │ Price      │ Value      │
├─────────────┼──────────┼────────────┼────────────┤
│ Gold        │ 100      │ $2,018.25  │ $201,825   │
├─────────────┼──────────┼────────────┼────────────┤
│ Real Estate │ 1        │ $1,000,000 │ $1,000,000 │
└─────────────┴──────────┴────────────┴────────────┘

Total Amounts
‾‾‾‾‾‾‾‾‾‾‾‾‾
┌─────────────┬──────────────────┬────────────────────┬──────────────────┐
│ Name        │ Amount           │ Value              │ % of Total Value │
├─────────────┼──────────────────┼────────────────────┼──────────────────┤
│ ETH         │ 4,254,204.29     │ $11,213,104,040.03 │ 62.5636          │
├─────────────┼──────────────────┼────────────────────┼──────────────────┤
│ USDT        │ 5,325,198,659.87 │ $5,325,198,659.87  │ 29.7120          │
├─────────────┼──────────────────┼────────────────────┼──────────────────┤
│ USDC        │ 300,001,622.94   │ $300,001,622.94    │ 1.67386          │
├─────────────┼──────────────────┼────────────────────┼──────────────────┤
│ DAI         │ 0.0002           │ $0.0002            │ 9.95031e-13      │
├─────────────┼──────────────────┼────────────────────┼──────────────────┤
│ LINK        │ 54,653,254.58    │ $1,083,227,505.76  │ 6.04387          │
├─────────────┼──────────────────┼────────────────────┼──────────────────┤
│ Gold        │ 100              │ $201,825           │ 0.00112608       │
├─────────────┼──────────────────┼────────────────────┼──────────────────┤
│ Real Estate │ 1                │ $1,000,000         │ 0.00557951       │
├─────────────┼──────────────────┼────────────────────┼──────────────────┤
│             │ Total Value      │ $17,922,733,653.6  │                  │
└─────────────┴──────────────────┴────────────────────┴──────────────────┘

Custom Pricing

You can also add assets priced in other tokens/assets. Please note that the token should have been added via the token add command (or appear in the global token list, if you have explicitly specified to use it):

crypto-scanner asset add --name CDP --quantity 123 --unit-price 1 --symbol ETH

? Enter password [hidden]

Added 123 units of CDP at the price of 1 ETH per unit
crypto-scanner asset add --name wwUSDC --quantity 1000 --unit-price 2 --symbol USDC

? Enter password [hidden]

Added 1000 units of wwUSDC at the price of 2 USDC per unit

You can check and verify that the new assets are now part of the DB:

crypto-scanner db show

? Enter password [hidden]

DB
‾‾
Version: 1

Ledgers
‾‾‾‾‾‾‾
┌──────────┬────────────────────────────────────────────┬────────────┐
│ Ledger   │ Address                                    │ Note       │
├──────────┼────────────────────────────────────────────┼────────────┤
│ Binance  │ 0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8 │ Binance 7  │
├──────────┼────────────────────────────────────────────┼────────────┤
│ Binance  │ 0xF977814e90dA44bFA03b6295A0616a897441aceC │ Binance 8  │
├──────────┼────────────────────────────────────────────┼────────────┤
│ Kraken   │ 0xDA9dfA130Df4dE4673b89022EE50ff26f6EA73Cf │            │
├──────────┼────────────────────────────────────────────┼────────────┤
│ Coinbase │ 0x71660c4005BA85c37ccec55d0C4493E66Fe775d3 │ Coinbase 1 │
└──────────┴────────────────────────────────────────────┴────────────┘

Tokens
‾‾‾‾‾‾
┌────────┬────────────────────────────────────────────┬──────────┐
│ Symbol │ Address                                    │ Decimals │
├────────┼────────────────────────────────────────────┼──────────┤
│ USDT   │ 0xdAC17F958D2ee523a2206206994597C13D831ec7 │ 6        │
├────────┼────────────────────────────────────────────┼──────────┤
│ USDC   │ 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 │ 6        │
├────────┼────────────────────────────────────────────┼──────────┤
│ DAI    │ 0x6B175474E89094C44Da98b954EedeAC495271d0F │ 18       │
├────────┼────────────────────────────────────────────┼──────────┤
│ LINK   │ 0x514910771AF9Ca656af840dff83E8264EcF986CA │ 18       │
└────────┴────────────────────────────────────────────┴──────────┘

Assets
‾‾‾‾‾‾
┌─────────────┬──────────┬────────────┐
│ Name        │ Quantity │ Price      │
├─────────────┼──────────┼────────────┤
│ Gold        │ 100      │ $2,018.25  │
├─────────────┼──────────┼────────────┤
│ Real Estate │ 1        │ $1,000,000 │
├─────────────┼──────────┼────────────┤
│ CDP         │ 123      │ 1 ETH      │
├─────────────┼──────────┼────────────┤
│ wwUSDC      │ 1,000    │ 2 USDC     │
└─────────────┴──────────┴────────────┘

You can also see that asset amounts are aggregated as well:

crypto-scanner scan -p -v

? Enter password [hidden]

Querying prices. This operation may take a very long time...

Finished | ████████████████████████████████████████ 100% | ETA: 0s | 4/4

Scanning all addresses and tokens...

Finished | ████████████████████████████████████████ 100% | ETA: 0s | 4/4
Finished | ████████████████████████████████████████ 100% | ETA: 0s | 4/4

Prices
‾‾‾‾‾‾
┌─────────────┬────────────┐
│ Symbol      │ Price      │
├─────────────┼────────────┤
│ CDP         │ $2,635.77  │
├─────────────┼────────────┤
│ DAI         │ $0.999     │
├─────────────┼────────────┤
│ ETH         │ $2,635.77  │
├─────────────┼────────────┤
│ Gold        │ $2,018.25  │
├─────────────┼────────────┤
│ LINK        │ $19.82     │
├─────────────┼────────────┤
│ Real Estate │ $1,000,000 │
├─────────────┼────────────┤
│ USDC        │ $1         │
├─────────────┼────────────┤
│ USDT        │ $1         │
├─────────────┼────────────┤
│ wwUSDC      │ $2         │
└─────────────┴────────────┘

Addresses
‾‾‾‾‾‾‾‾‾
┌──────────┬────────────────────────────────────────────┬────────────────────┬───────────────────┬─────────────────┬─────────┬───────────────────┬────────────┐
│ Ledger   │ Address                                    │ ETH                │ USDT              │ USDC            │ DAI     │ LINK              │ Note       │
├──────────┼────────────────────────────────────────────┼────────────────────┼───────────────────┼─────────────────┼─────────┼───────────────────┼────────────┤
│ Binance  │ 0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8 │ 1,996,008.38       │ 162               │ 0               │ 0       │ 5,000,000         │ Binance 7  │
├──────────┼────────────────────────────────────────────┼────────────────────┼───────────────────┼─────────────────┼─────────┼───────────────────┼────────────┤
│ Binance  │ 0xF977814e90dA44bFA03b6295A0616a897441aceC │ 647,701.18         │ 5,325,198,345.11  │ 300,000,000     │ 0       │ 40,153,254.58     │ Binance 8  │
├──────────┼────────────────────────────────────────────┼────────────────────┼───────────────────┼─────────────────┼─────────┼───────────────────┼────────────┤
│ Kraken   │ 0xDA9dfA130Df4dE4673b89022EE50ff26f6EA73Cf │ 1,598,923.57       │ 142               │ 0               │ 0       │ 9,500,000         │            │
├──────────┼────────────────────────────────────────────┼────────────────────┼───────────────────┼─────────────────┼─────────┼───────────────────┼────────────┤
│ Coinbase │ 0x71660c4005BA85c37ccec55d0C4493E66Fe775d3 │ 11,571.16          │ 10.76             │ 1,622.94        │ 0.0002  │ 0                 │ Coinbase 1 │
├──────────┼────────────────────────────────────────────┼────────────────────┼───────────────────┼─────────────────┼─────────┼───────────────────┼────────────┤
│          │ Total                                      │ 4,254,204.29       │ 5,325,198,659.87  │ 300,001,622.94  │ 0.0002  │ 54,653,254.58     │            │
├──────────┼────────────────────────────────────────────┼────────────────────┼───────────────────┼─────────────────┼─────────┼───────────────────┼────────────┤
│          │                                            │ ETH                │ USDT              │ USDC            │ DAI     │ LINK              │            │
├──────────┼────────────────────────────────────────────┼────────────────────┼───────────────────┼─────────────────┼─────────┼───────────────────┼────────────┤
│          │ Total Value                                │ $11,213,104,040.03 │ $5,325,198,659.87 │ $300,001,622.94 │ $0.0002 │ $1,083,227,505.76 │            │
└──────────┴────────────────────────────────────────────┴────────────────────┴───────────────────┴─────────────────┴─────────┴───────────────────┴────────────┘

Ledgers
‾‾‾‾‾‾‾
┌─────────────┬────────────────────┬───────────────────┬─────────────────┬─────────┬───────────────────┐
│ Ledger      │ ETH                │ USDT              │ USDC            │ DAI     │ LINK              │
├─────────────┼────────────────────┼───────────────────┼─────────────────┼─────────┼───────────────────┤
│ Binance     │ 2,643,709.56       │ 5,325,198,507.11  │ 300,000,000     │ 0       │ 45,153,254.58     │
├─────────────┼────────────────────┼───────────────────┼─────────────────┼─────────┼───────────────────┤
│ Kraken      │ 1,598,923.57       │ 142               │ 0               │ 0       │ 9,500,000         │
├─────────────┼────────────────────┼───────────────────┼─────────────────┼─────────┼───────────────────┤
│ Coinbase    │ 11,571.16          │ 10.76             │ 1,622.94        │ 0.0002  │ 0                 │
├─────────────┼────────────────────┼───────────────────┼─────────────────┼─────────┼───────────────────┤
│ Total       │ 4,254,204.29       │ 5,325,198,659.87  │ 300,001,622.94  │ 0.0002  │ 54,653,254.58     │
├─────────────┼────────────────────┼───────────────────┼─────────────────┼─────────┼───────────────────┤
│             │ ETH                │ USDT              │ USDC            │ DAI     │ LINK              │
├─────────────┼────────────────────┼───────────────────┼─────────────────┼─────────┼───────────────────┤
│ Total Value │ $11,213,104,040.03 │ $5,325,198,659.87 │ $300,001,622.94 │ $0.0002 │ $1,083,227,505.76 │
└─────────────┴────────────────────┴───────────────────┴─────────────────┴─────────┴───────────────────┘

Assets
‾‾‾‾‾‾
┌─────────────┬──────────┬────────────┬─────────────┐
│ Name        │ Quantity │ Price      │ Value       │
├─────────────┼──────────┼────────────┼─────────────┤
│ Gold        │ 100      │ $2,018.25  │ $201,825    │
├─────────────┼──────────┼────────────┼─────────────┤
│ Real Estate │ 1        │ $1,000,000 │ $1,000,000  │
├─────────────┼──────────┼────────────┼─────────────┤
│ CDP         │ 123      │ 1 ETH      │ $324,199.71 │
├─────────────┼──────────┼────────────┼─────────────┤
│ wwUSDC      │ 1,000    │ 2 USDC     │ $2,000      │
└─────────────┴──────────┴────────────┴─────────────┘

Total Amounts
‾‾‾‾‾‾‾‾‾‾‾‾‾
┌─────────────┬──────────────────┬────────────────────┬──────────────────┐
│ Name        │ Amount           │ Value              │ % of Total Value │
├─────────────┼──────────────────┼────────────────────┼──────────────────┤
│ ETH         │ 4,254,204.29     │ $11,213,104,040.03 │ 62.5624          │
├─────────────┼──────────────────┼────────────────────┼──────────────────┤
│ USDT        │ 5,325,198,659.87 │ $5,325,198,659.87  │ 29.7114          │
├─────────────┼──────────────────┼────────────────────┼──────────────────┤
│ USDC        │ 300,001,622.94   │ $300,001,622.94    │ 1.67383          │
├─────────────┼──────────────────┼────────────────────┼──────────────────┤
│ DAI         │ 0.0002           │ $0.0002            │ 9.95012e-13      │
├─────────────┼──────────────────┼────────────────────┼──────────────────┤
│ LINK        │ 54,653,254.58    │ $1,083,227,505.76  │ 6.04376          │
├─────────────┼──────────────────┼────────────────────┼──────────────────┤
│ Gold        │ 100              │ $201,825           │ 0.00112606       │
├─────────────┼──────────────────┼────────────────────┼──────────────────┤
│ Real Estate │ 1                │ $1,000,000         │ 0.00557940       │
├─────────────┼──────────────────┼────────────────────┼──────────────────┤
│ CDP         │ 123              │ $324,199.71        │ 0.00180884       │
├─────────────┼──────────────────┼────────────────────┼──────────────────┤
│ wwUSDC      │ 1,000            │ $2,000             │ 0.0000111588     │
├─────────────┼──────────────────┼────────────────────┼──────────────────┤
│             │ Total Value      │ $17,923,059,853.31 │                  │
└─────────────┴──────────────────┴────────────────────┴──────────────────┘

You can also choose to aggregate custom-priced assets (i.e., assets which are priced in other tokens/assets) in an additional totals table by passing the optional -a/--aggregate-assets flag.

For example, if an asset has a custom price of 3 ETH per unit and a quantity of 10, we will aggregate its amount with the total ETH, by adding a total of 30 ETH to the total ETH balance.

Using our current DB, we can see both CDP and wwUSDC are being aggregated into ETH and USDC respectively:

crypto-scanner scan -p -v -a

? Enter password [hidden]

Querying prices. This operation may take a very long time...

Finished | ████████████████████████████████████████ 100% | ETA: 0s | 8/8

Scanning all addresses and tokens...

Finished | ████████████████████████████████████████ 100% | ETA: 0s | 4/4
Finished | ████████████████████████████████████████ 100% | ETA: 0s | 4/4

Prices
‾‾‾‾‾‾
┌─────────────┬────────────┐
│ Symbol      │ Price      │
├─────────────┼────────────┤
│ CDP         │ $2,635.77  │
├─────────────┼────────────┤
│ DAI         │ $0.999     │
├─────────────┼────────────┤
│ ETH         │ $2,635.77  │
├─────────────┼────────────┤
│ Gold        │ $2,018.25  │
├─────────────┼────────────┤
│ LINK        │ $19.82     │
├─────────────┼────────────┤
│ Real Estate │ $1,000,000 │
├─────────────┼────────────┤
│ USDC        │ $1         │
├─────────────┼────────────┤
│ USDT        │ $1         │
├─────────────┼────────────┤
│ wwUS