mimizone / helium-tax-tool-webpage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

helium-taxable-mining-earnings

The codebase supporting this website.

A brutally simple script for exporting a CSV of taxable earnings for a given account based on the USD/HNT price on Coingecko.

Disclaimer: This is not official tax advice - I have zero qualifications and take no responsibility for how you use this code. Use at your own risk and make sure to consult a tax professional.

I suspect that Helium is many folks' first experience with crypto mining (it is for me) and thus, maneuvering crypto taxes. My understanding is that the IRS considers mined crypto as income, based on the USD value of the token on that day.

e.g. If I mined 10 HNT on 12/30/2020 and the market price on that day was $1.50/HNT, that is considered $15 in eligible income.

If you then sell this mined HNT, the difference between the mined price and sell price will be realized as a capital gain/loss. Some more details here: https://cryptotrader.tax/blog/how-to-handle-cryptocurrency-mining-on-your-taxes

Most exchanges and tax preparation software can help you handle the capital gains aspect, but I haven't seen a straightforward way to calculate your eligible income for mined HNT. This extremely simple script is meant for my own purposes, but I figured I'd share in case it helps others. Simply plug in your account address and it will generate a CSV file with four columns:

  • DATE: the script starts from 12-31-2020 and works backward until the day you got your first hotspot.
  • HNT_MINED: total HNT mined on that day for all hotspots associated with your address (gathered by calling the Helium API
  • HNT_PRICE_USD: the Coingecko price for HNT (in USD) on that date
  • VALUE_MINED_USD: calculated as HNT_MINED * HNT_PRICE_USD (total eligible mined income for that date)

Like I said, nothing special, but if it saves someone a few minutes of coding then it's worth it.

About


Languages

Language:Python 55.0%Language:HTML 43.2%Language:CSS 1.8%