Giter Site home page Giter Site logo

teneopython01 / algorand_txn_csv_exporter Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 3.0 22 KB

Export all transactions for an Algorand wallet (including all ASAs like YLDY, Smile, Akita, Opulent, Lofty, etc.) to a CSV file. Intended to assist with filing taxes.

Python 100.00%
algorand algo tax csv export exporter transaction txn wallet download

algorand_txn_csv_exporter's Introduction

ALGORAND TRANSACTION CSV EXPORTER (works for all ASAs like YLDY, etc.)

What does it do?

  • This script will export all transactions for an algorand wallet to a CSV file.
  • All ASAs (Algorand Standard Assets) in the Algorand wallet will be included in the export. This includes assets like Yieldly (YLDY), Smile Coin (SMILE), Algogems (GEMS), Akita, Lofty, etc....
  • It is intended to assist with filing taxes. For example, I used it to help find Yieldly (YLDY) and other ASA defi activity that wasn't automatically imported by Koinly.io (a crypto tax web service).
  • It uses the v1 API from algoexplorer.io (which is free and doesn't require any special credentials)
  • How to use it:

  • Simply update the wallet variable with the wallet address(es) you're interested in, and then run the script.
  • An active internet connection is required, since the code leverages the algoexplorer.io API to read the transactions from the blockchain
  • The packages used by the code are common ones, but you may need to install them if you don't already have them: pandas, pandas.io.json, requests, datetime, and numpy

    Additional Notes:

  • The last several columns in the export that start with "z_" are fields I added to the API feed at the end. They are the most commonly used fields, and should help you find what you're looking for more easily.
  • Optionally, you can update the timezone adjustment variable with the number of hours your timezone is from UDT (not required)
  • The datetime fields that start with "z_" are in the format that Excel uses. Simply change the format mask in Excel for these fields to datetime to see it formatted.
  • What other options exist to download transactions?

  • The official algo wallet (only available via phone app at the time of this repo's creation) will allow CSV exports, if you want to put your wallet on your phone. I didn't want to do this.
  • This other github repo does something similar but attempts to group transcations together. I prefer raw exports instead. Here's a link if you want to check out their approach: https://github.com/HashingSlash/AlgoCSV
  • Did this script help you? Want to tip me?

    I hope this helped you; It helped me too! If you feel inclined to tip, here is an Algo wallet address I set up specifically for tips (not necessary but certainly welcome!):

    5Q2RGRRXLC3643TFP22Y5LITE5P3SPQLZO2U4KLDALLMUMZWCOEFVEKQEQ

    algorand_txn_csv_exporter's People

    Contributors

    teneopython01 avatar

    Stargazers

     avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

    Watchers

     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.