Code Monkey home page Code Monkey logo

walletchecker's Introduction

Cryptocurrency Wallet Checker

This script fetches cryptocurrency asset data using the Debank API, aggregates it, and visualizes the distribution of assets in a pie chart for multiple wallets. It's designed to give a quick overview of asset distribution across different cryptocurrencies for specified wallet addresses.

Requirements

  • Python 3.6+
  • Pip for Python 3

Setup

  1. Clone the Repository:
  • Clone the "WalletChecker" repository from GitHub to your local machine by running:
git clone https://github.com/mc-sleuth/WalletChecker.git
  • Navigate into the cloned repository:
cd WalletChecker
  1. Install Required Python Packages:
  • Install the dependencies listed in requirements.txt using pip:
pip install -r requirements.txt
  1. Acquire API Keys:
  • Debank API Key: Obtain API credits from Debank. $200 buys 1 million credits, which should suffice for this project. Purchase credits at Debank Open API by selecting "Purchase Units".
  1. Configure Environment Variables:
  • A sample.env file is included in the repository. Rename this to .env and update it with your obtained API keys:
DEBANK_API_KEY=your_debank_api_key_here
  1. Edit the Script with Your Wallet Addresses:
  • Open app.py (or the main script file) in your preferred code editor.
  • Locate the wallet_addresses list and replace the sample addresses with your actual cryptocurrency wallet addresses.
  1. Run the Script:
  • Ensure your environment variables are set (refer to the .env configuration).
  • Execute the script:
python app.py

This will fetch asset data for the provided wallet addresses, aggregate it, and display a pie chart visualization of the asset distribution.

For Beginners

If you're new to coding and Python, here's a simplified guide to get you started:

  1. Install Python:
  • Go to python.org and download the latest version of Python for your operating system (Windows/MacOS/Linux).
  • Run the installer and follow the instructions. Make sure to check the box that says "Add Python to PATH" during installation.
  1. Download the Script from GitHub:
  • Visit the GitHub repository for this project at mc-sleuth/WalletChecker.
  • Click on the green "Code" button and then "Download ZIP" to download the entire project.
  • Extract the ZIP file to a folder of your choice.
  1. Open a Terminal or Command Prompt:
  • On Windows, you can search for "Command Prompt" or "PowerShell" in the Start menu.
  • On MacOS, open "Terminal" from Applications > Utilities.
  • On Linux, use your favorite terminal application.
  1. Install Required Packages:
  • In the terminal, navigate to the folder where you extracted the project. You can use the cd command to change directories. For example, if you extracted the project to "Downloads/WalletChecker-main", use:
cd Downloads/WalletChecker-main
  • Install the necessary Python packages by running:
pip install -r requirements.txt
  1. Configure the Script with Your Wallet Addresses:
  • Open the script in a text editor. If you're not sure which editor to use, Notepad (Windows), TextEdit (Mac), or any basic code editor will work.
  • Look for the wallet_addresses list and replace the placeholder addresses with your own. Save your changes.
  1. Obtain API keys:
  • Debank API Key: Obtain API credits from Debank. $200 buys 1 million credits, which should suffice for this project. Purchase credits at Debank Open API by selecting "Purchase Units".
  • Then look for the Access key and copy paste it, this is your Debank API key.
  1. Set Up Environment Variables:
  • Rename the provided sample.env file to .env. Open it in your text editor and fill in your API keys:

    DEBANK_API_KEY=your_debank_api_key_here
    
  1. Run the Script:
  • Ensure you're still in the project's directory in your terminal or command prompt. Run the script with:
python app.py
  1. View the Results:
  • The script will generate a pie chart visualization of your cryptocurrency assets and print a summary of each wallet's balance and the total balance across all wallets.

walletchecker's People

Contributors

mc-sleuth avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.