Tax season is upon us here in Norway, and with it comes updated guidelines for how to treat cryptocurrencies. Because of that I decided to start using [CoinTracking.info](https://cointracking.info), (which I wholeheartedly recommend), to track all of my crypto history. That worked great for BTC and Ethereum wallets and most exchanges, however for STEEM (and Bitshares) it was impossible to get a full printout of my transaction history. I did some research and found the [steem-report](https://github.com/MidnightLightning/steem-report) repo by MidnightLightning, but unfortunately it had been broken by recent changes in the Steem API, and I was unable to get it working properly. That's why I decided to fork that repo and build my own version. That repo can be found here: [steem-cointracking](https://github.com/svk31/steem-cointracking). Instead of fetching data from an API server I decided to use @furion's amazing [SteemData](https://steemdata.com/) service, which allowed me to fetch all the transaction history for a given account. Once I had the data, it was a matter of parsing the various operation types properly and organizing the data, and then writing the data to a CSV file that can be imported directly into CoinTracking.info.  # Usage To use the script, simply clone the repo locally then run `npm install`. Once the modules are installed, you can run the script for your desired account: `node app.js myaccount` There are some additional input parameters that are explained in the README. You'll then find a file in the `output` folder called `myaccount-steem-transactions.csv`. This file can then be imported directly into CoinTracking using their Bulk Imports > CSV Import option:  # Caveats After weeks of tweaking I now have a working script that generates a mostly correct history, but there are still some discrepancies in balances and some missing data from the Steem blockchain itself. I've classified block production as Mining, and Author/Curation rewards as Income. You're free to change this however you like, the same goes for any of the many operation types. I've also added grouping for many operation types, since STEEM generates an enormous amount of transactions. Most groupings are by day, for example author rewards and curation rewards. If you see a better way of doing things, please open an issue and let me know. ### Early mining There are issues with the STEEM history for older accounts that participated in the initial mining phase. The producer rewards for that phase are not recorded in the current history, causing missing balances. To compensate for this, I've assigned the difference between the final balance and the actual balance to these early mining operations. ### VESTS to STEEM conversion In order to track the actual value of VESTS, I've added bi-weekly deposits of STEEM that correspond to the current balance of VESTS. This conversion is done using a formula to calculate the steem_per_mvests ratio found here: https://steemit.com/steemdev/@holger80/how-to-estimate-historic-steempermvests-values-for-converting-old-rewards-from-vest-to-steem I noticed that this formula broke down completely for the early mining phase, so I extracted actual values manually from the blockchain and stored them in a json file. These values were then used to interpolate a better value for early steem_per_mvests ratios. ### VESTS inaccuracies Despite having spent a lot of time debugging the various operations and tracking down many bugs, there are still accounts where the final calculated balances are different from the actual balances. One of my accounts is a good example, `witness.svk`. This account has a large discrepancy in the final balance of MVESTS, and I've so far been unable to track down why. There may be other inaccuracies as well.
author | svk |
---|---|
permlink | steem-cointracking-generate-complete-transaction-history-for-steem |
category | steem |
json_metadata | {"tags":["steem","cointracking","tax","steemdev"],"users":["furion"],"image":["https://steemitimages.com/DQmNPVReFQLikLe56Rg7M4kz14wHqKwbAzcS7JsuGMmFJ1q/image.png","https://steemitimages.com/DQmdc3hk6CN9KoRW8vjCSCugoH7nCtsMGS88aYioHLvgpmm/image.png"],"links":["https://cointracking.info","https://github.com/MidnightLightning/steem-report","https://github.com/svk31/steem-cointracking","https://steemdata.com/","https://steemit.com/steemdev/@holger80/how-to-estimate-historic-steempermvests-values-for-converting-old-rewards-from-vest-to-steem"],"app":"steemit/0.1","format":"markdown"} |
created | 2018-04-28 09:48:18 |
last_update | 2018-04-28 09:48:18 |
depth | 0 |
children | 13 |
last_payout | 2018-05-05 09:48:18 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 114.052 HBD |
curator_payout_value | 5.821 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 3,995 |
author_reputation | 28,721,479,690,952 |
root_title | "steem-cointracking: Generate complete transaction history for STEEM" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 52,613,503 |
net_rshares | 18,847,239,622,277 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
svk | 0 | 11,123,153,494,415 | 100% | ||
steempower | 0 | 2,453,830,518,723 | 100% | ||
clains | 0 | 1,380,280,421,311 | 100% | ||
chryspano | 0 | 736,707,726,406 | 100% | ||
camilla | 0 | 911,004,695,148 | 100% | ||
tsugimoto | 0 | 203,683,237,234 | 100% | ||
cm-steem | 0 | 615,380,719,433 | 100% | ||
stephen-somers | 0 | 4,735,707,221 | 6% | ||
knopki | 0 | 181,090,579 | 100% | ||
sc-steemit | 0 | 31,814,867,625 | 100% | ||
moisesmcardona | 0 | 1,456,825,902 | 1% | ||
redes | 0 | 1,366,035,435,809 | 28% | ||
realitycheck | 0 | 2,337,896,905 | 100% | ||
erickpinos | 0 | 0 | 100% | ||
netdragonx | 0 | 107,803,090 | 100% | ||
lelek | 0 | 1,232,904,786 | 100% | ||
shintamonica | 0 | 54,993,746 | 100% | ||
helenmunch | 0 | 7,804,948,542 | 100% | ||
torbjorns | 0 | 653,998,456 | 100% | ||
michelmake | 0 | 3,461,320,261 | 100% | ||
zurimabarcelo | 0 | 82,510,356 | 100% | ||
limitlessfash | 0 | 330,477,349 | 100% | ||
hambali06 | 0 | 171,663,245 | 100% | ||
cryptosoul55 | 0 | 592,636,536 | 100% | ||
schedv | 0 | 562,153,016 | 100% | ||
pawelel88 | 0 | 553,749,964 | 100% | ||
w6lk3r | 0 | 178,071,097 | 100% | ||
store25e | 0 | 232,403,078 | 100% | ||
pavee | 0 | 51,938,050 | 100% | ||
nareg | 0 | 565,413,994 | 100% |
very very good post🙏🙏 thank you for share post❤
author | binam |
---|---|
permlink | re-svk-steem-cointracking-generate-complete-transaction-history-for-steem-20180428t095401001z |
category | steem |
json_metadata | {"tags":["steem"],"app":"steemit/0.1"} |
created | 2018-04-28 09:54:15 |
last_update | 2018-04-28 09:54:15 |
depth | 1 |
children | 0 |
last_payout | 2018-05-05 09:54:15 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 47 |
author_reputation | 237,005,144,905 |
root_title | "steem-cointracking: Generate complete transaction history for STEEM" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 52,614,249 |
net_rshares | 0 |
In future tax will be added on steem.
author | dwancina |
---|---|
permlink | re-svk-steem-cointracking-generate-complete-transaction-history-for-steem-20180428t095619030z |
category | steem |
json_metadata | {"tags":["steem"],"app":"steemit/0.1"} |
created | 2018-04-28 09:56:18 |
last_update | 2018-04-28 09:56:18 |
depth | 1 |
children | 0 |
last_payout | 2018-05-05 09:56:18 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 37 |
author_reputation | 131,551,342,256 |
root_title | "steem-cointracking: Generate complete transaction history for STEEM" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 52,614,504 |
net_rshares | 0 |
@svk Norway is leading country on steemit and your inputs are always welcome to community. we will restart extremesports challenge that was supported by you a while back your input on entire community is great influence for people who believe in steemit
author | flysky |
---|---|
permlink | re-svk-steem-cointracking-generate-complete-transaction-history-for-steem-20180517t220348330z |
category | steem |
json_metadata | {"tags":["steem"],"users":["svk"],"app":"steemit/0.1"} |
created | 2018-05-17 22:03:54 |
last_update | 2018-05-17 22:03:54 |
depth | 1 |
children | 0 |
last_payout | 2018-05-24 22:03:54 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 253 |
author_reputation | 189,012,239,854,883 |
root_title | "steem-cointracking: Generate complete transaction history for STEEM" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 56,262,008 |
net_rshares | 0 |
This would have been such a help for me now if [Steemdata hadn't been shut down](https://steemit.com/steemdata/@furion/steemdata-is-shutting-down-on-may-1st)....
author | guttormf |
---|---|
permlink | re-svk-steem-cointracking-generate-complete-transaction-history-for-steem-20180530t101122359z |
category | steem |
json_metadata | {"tags":["steem"],"links":["https://steemit.com/steemdata/@furion/steemdata-is-shutting-down-on-may-1st"],"app":"steemit/0.1"} |
created | 2018-05-30 10:11:24 |
last_update | 2018-05-30 10:11:24 |
depth | 1 |
children | 0 |
last_payout | 2018-06-06 10:11:24 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 161 |
author_reputation | 323,593,357,527 |
root_title | "steem-cointracking: Generate complete transaction history for STEEM" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 58,418,845 |
net_rshares | 0 |
what a great information! tnx sir @svk for ur post.
author | kafkajnr |
---|---|
permlink | re-svk-steem-cointracking-generate-complete-transaction-history-for-steem-20180428t095350219z |
category | steem |
json_metadata | {"tags":["steem"],"users":["svk"],"app":"steemit/0.1"} |
created | 2018-04-28 09:53:51 |
last_update | 2018-04-28 09:53:51 |
depth | 1 |
children | 0 |
last_payout | 2018-05-05 09:53:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 51 |
author_reputation | 37,118,863,846 |
root_title | "steem-cointracking: Generate complete transaction history for STEEM" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 52,614,193 |
net_rshares | 333,019,349 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
kafkajnr | 0 | 333,019,349 | 100% |
If only I had the skills you have! Would make life much easier! Thanks for sharing the info. I'm from the Netherlands and my crypto investments are below the threshold for taxation. Nevertheless, it's not a bad idea to start looking into things like CoinTracking.info. Thanks again.
author | michelmake |
---|---|
permlink | re-svk-steem-cointracking-generate-complete-transaction-history-for-steem-20180430t054536448z |
category | steem |
json_metadata | {"tags":["steem"],"app":"steemit/0.1"} |
created | 2018-04-30 05:45:36 |
last_update | 2018-04-30 05:45:48 |
depth | 1 |
children | 0 |
last_payout | 2018-05-07 05:45:36 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 282 |
author_reputation | 38,156,784,734,657 |
root_title | "steem-cointracking: Generate complete transaction history for STEEM" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 52,967,278 |
net_rshares | 0 |
How will they know unless you volunteer to owe
author | monetaryrealist |
---|---|
permlink | re-svk-steem-cointracking-generate-complete-transaction-history-for-steem-20180428t095735253z |
category | steem |
json_metadata | {"tags":["steem"],"app":"steemit/0.1"} |
created | 2018-04-28 09:57:39 |
last_update | 2018-04-28 09:57:39 |
depth | 1 |
children | 1 |
last_payout | 2018-05-05 09:57:39 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 46 |
author_reputation | 64,006,129,536 |
root_title | "steem-cointracking: Generate complete transaction history for STEEM" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 52,614,655 |
net_rshares | 0 |
They won't, but if you're not honest about your crypto earnings then it will most likely come back to haunt you once you start spending that income. It can also be expected that tax authorities will improve their tools and knowledge of blockchains as time goes by, which may lead to questions asked of you. My advice is to make sure you have your records in order.
author | svk |
---|---|
permlink | re-monetaryrealist-re-svk-steem-cointracking-generate-complete-transaction-history-for-steem-20180428t100029890z |
category | steem |
json_metadata | {"tags":["steem"],"app":"steemit/0.1"} |
created | 2018-04-28 10:00:30 |
last_update | 2018-04-28 10:00:30 |
depth | 2 |
children | 0 |
last_payout | 2018-05-05 10:00:30 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.034 HBD |
curator_payout_value | 0.011 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 364 |
author_reputation | 28,721,479,690,952 |
root_title | "steem-cointracking: Generate complete transaction history for STEEM" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 52,615,039 |
net_rshares | 7,648,849,571 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
luisneira | 0 | 0 | 100% | ||
helenmunch | 0 | 7,648,849,571 | 100% |
Nice informative post
author | rasel49 |
---|---|
permlink | re-svk-steem-cointracking-generate-complete-transaction-history-for-steem-20180428t094910458z |
category | steem |
json_metadata | {"tags":["steem"],"app":"steemit/0.1"} |
created | 2018-04-28 09:49:18 |
last_update | 2018-04-28 09:49:18 |
depth | 1 |
children | 0 |
last_payout | 2018-05-05 09:49:18 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 21 |
author_reputation | -344,267,664,729 |
root_title | "steem-cointracking: Generate complete transaction history for STEEM" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 52,613,610 |
net_rshares | 0 |
Hi there! I made this gift for you and i hooe you can give it a look and like. Thanks in advance :) https://steemit.com/@soufiani/svk-working-behind-the-scene-the-pencil-version > 
author | soufiani |
---|---|
permlink | re-svk-steem-cointracking-generate-complete-transaction-history-for-steem-20180620t204841145z |
category | steem |
json_metadata | {"tags":["steem"],"community":"busy","app":"busy/2.4.0"} |
created | 2018-06-20 20:48:42 |
last_update | 2018-06-20 20:48:42 |
depth | 1 |
children | 0 |
last_payout | 2018-06-27 20:48:42 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 287 |
author_reputation | 76,196,638,053,322 |
root_title | "steem-cointracking: Generate complete transaction history for STEEM" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 61,544,234 |
net_rshares | 4,455,523,924 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
soufiani | 0 | 4,455,523,924 | 6% |
<center>https://steemitimages.com/200x200/https://s-media-cache-ak0.pinimg.com/originals/81/28/3c/81283c6aed7bdb5b9f8ad73b8ce62c2f.jpg</center> --- <center>Hello @svk , Congratulations ✅ . Your content began to appear in the hot section. I am the information account of "SteemBotTracker" site. </center> --- <center> Your Informations Total SBD: 0.003 Total STEEM: 1820.27 </center> --- <center> I recommend to increase this; You can make "Resteem" and advertise to the followers of the whale accounts. "Resteem Bot" for you; ✅ The most profitable Resteem Whale @byresteem has 25.500 Followers + 7000 Sp + Upvote with min +55 accounts. </center> --- <center> You can purchase "upvote" by bid bots. "Upvote Bot" ✅ The most profitable whale in the last round. @upme </center> --- <center> I'm taking this message once. You need to use the #steembottrackerr tag for more information. Those who "upvote" this interpretation will be awarded a "UpVote" prize of 100 Sbd per week per person. I am a bot, I can not answer the comment. I hope I could help. Good luck. Sorry if I disturbed you. </center>
author | steembottrackerr |
---|---|
permlink | 20180506t103346169z |
category | steem |
json_metadata | {"tags":["advice"],"app":"steemjs/test"} |
created | 2018-05-06 10:33:48 |
last_update | 2018-05-06 10:33:48 |
depth | 1 |
children | 0 |
last_payout | 2018-05-13 10:33:48 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,125 |
author_reputation | -1,493,369,324,060 |
root_title | "steem-cointracking: Generate complete transaction history for STEEM" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 54,175,416 |
net_rshares | 0 |
Congratulations @svk! You received a personal award! <table><tr><td>https://steemitimages.com/70x70/http://steemitboard.com/@svk/birthday3.png</td><td>Happy Birthday! - You are on the Steem blockchain for 3 years!</td></tr></table> <sub>_You can view [your badges on your Steem Board](https://steemitboard.com/@svk) and compare to others on the [Steem Ranking](http://steemitboard.com/ranking/index.php?name=svk)_</sub> ###### [Vote for @Steemitboard as a witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1) to get one more award and increased upvotes!
author | steemitboard |
---|---|
permlink | steemitboard-notify-svk-20190404t101720000z |
category | steem |
json_metadata | {"image":["https://steemitboard.com/img/notify.png"]} |
created | 2019-04-04 10:17:21 |
last_update | 2019-04-04 10:17:21 |
depth | 1 |
children | 0 |
last_payout | 2019-04-11 10:17:21 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 599 |
author_reputation | 38,975,615,169,260 |
root_title | "steem-cointracking: Generate complete transaction history for STEEM" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 82,467,624 |
net_rshares | 0 |
Kanskje jeg skal sjekke ut cointracking.info, har enda ikke forsøkt å omgjøre steem til NOK, er det i det hele tatt sikkert? eller er det fare for å bli svindlet på en måte?
author | torbjorns |
---|---|
permlink | re-svk-steem-cointracking-generate-complete-transaction-history-for-steem-20180429t234441309z |
category | steem |
json_metadata | {"tags":["steem"],"app":"steemit/0.1"} |
created | 2018-04-29 23:44:42 |
last_update | 2018-04-29 23:44:42 |
depth | 1 |
children | 0 |
last_payout | 2018-05-06 23:44:42 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 173 |
author_reputation | 682,075,081,029 |
root_title | "steem-cointracking: Generate complete transaction history for STEEM" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 52,920,355 |
net_rshares | 0 |