Skip to content

noemacee/crypto_accountant

Repository files navigation

Crypto Accountant Script

Overview

This Python script helps crypto accountants manage data efficiently. The primary functionality is a script that retrieves and classes all the transactions given a wallet address in the Starknet blockchain.


Prerequisites

  1. Python Version
    Ensure you have Python 3.8 or later installed.
    You can check your Python version with:

    python --version
  2. API Key
    You’ll need a PROJECT_ID associated with your BlastAPI account.


Setup Instructions

  1. Clone the Repository

    git clone <repository_url>
    cd <repository_folder>
  2. Install Dependencies

    [OPTIONAL] First create a virtual environment in the cloned repository folder:

    python3 -m venv env

    Activate the environment:

    For MacOS/Linux

    source env/bin/activate

    For Windows

    .\env\Scripts\activate

    Use the requirements.txt file to install the necessary packages:

    pip install -r requirements.txt
  3. Set Up Environment Variables

    • A .env.template file is provided.

    • Rename it to .env:

    • Open the .env file in a text editor and replace <PROJECT_ID> with your actual project ID from BlastAPI:

      PROJECT_ID=<your_project_id>
      
    • Add one or multiple wallet addresses in the config.py file (in WALLET_ADDRESSES) to create a .csv file for each of them.


Usage

To use the script, simply run the following command in your terminal:

python run.py

Example

If your wallet address is 0xabc123...: WALLET_ADDRESSES = ["0xabc123..."] in config.py

A CSV file will be generated with all the transactions for the given wallet address.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors