Giter VIP home page Giter VIP logo

nlydv / handcount Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 2.0 211 KB

Tool to handle/export Handshake tx history from the wallet client (hsw) & exchanges (only Bittrex currently) for portfolio tracking purposes. Originally created specifically for merging tx histories between exchange and non-custodial wallet into CSV format for importing into Delta App's portfolio tracker.

JavaScript 100.00%
handshake hns hsd crypto-portfolio crypto-tracker handshake-tracker

handcount's Introduction

Handcount

This is an (originally private) nodejs program that I created in order to automate the accounting and exporting of certain blockchain transactions of mine.

Do NOT use this for production purposes.

Handcount was and is a program specifically developed for my own personal use only and, as is, in its current state, I do not recommend that anyone rely on its output, nor make any decisions based thereupon, for any business or personal finance matters. This repo was made public for reference purposes only.

Background

The primary focus was initially only centered around exporting non-custodial Handshake transactions into a CSV format which I could then import into the Delta portfolio tracking app (they don’t support Handshake wallet tracking and I don’t suspect any similar apps do either).

I ended up expanding it to also pull HNS-BTC exchange transactions & transfers from Bittrex, as well as process non-custodial Bitcoin wallet transactions in order to reconcile and account for all that related activity together.

To take it to the next level, I started to implement processing of Ethereum txs, but at this stage of complexity, I’m gonna have to un-spaghettify and refactor all the ad-hoc code if I’m to continue pushing it any further.

Overview

Handshake

Requires connecting to an hsw server using the configured URL and API keys. In practice this just means keeping the Bob Wallet application open and copying the generated API keys it provides into config.json along with setting the URL to localhost.

HD wallet name and (sub)account name from which to pull tx history should also be specified in config.json.

Everything else

All additional tx data is sourced from either centralized entities and/or via third-party APIs rather than directly from a blockchain. Non-custodial Bitcoin wallet txs, for example, are pulled indirectly using Blockchain.info’s explorer API for any given wallet address(es).

Architecture

What architecture?

It incorporates no more and no less functionality than what I need personally and it executes in a beeline towards that end (e.g. don’t want to pull exchange txs? gonna have to untangle all that code and see if the rest of the logic still works).

License

Copyright © 2021 Neel Yadav
All rights reserved.

This project is unlicensed.

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.