Sitemap
Sam Xie

Engineering software to build and acquire assets that generate wealth.

Building a crypto currency mining monitor

5 min readJul 13, 2019

--

Press enter or click to view image in full size
MPHWatch Screenshot

During the crypto boom of 2017, where bitcoin ballooned to 20k USD, I’d be mining crypto currencies. I used one of the services called NiceHash, which was kind of a marketplace for hashing power, where miners would automatically mine the most profitable algorithm. This was really nice, but it wasn’t able to withdraw my money until I had about $100 worth of bitcoin, which would take me a couple months. Then NiceHash got hacked.

After that controversy, there were many people like me to look for an alternative, wanting to still have our GPUs automatically switch to the most profitable coin at any given time. The most promising alternative was Mining Pool Hub. This was fundamentally the same, but different under the hood — we’d mine actually coins, and the coins would be exchange to whatever coin of your choice.

But the interface was not nice to look at. Many users, including myself, wanted somewhere to periodically check the mining rate of our computers. We’d then be able to tell if our computers stopped for some reason. While looking for a solution, I came across a web app (that I think was written in php) that kind of did that — but it didn’t do it well.

“miningpoolhubstats” was quite popular, but all the data were in tables and the relevant information was very hard to read. The usability was not the best — I thought I could do it better.

MPHWatch was born.

Development

I learned that all the mining information was available with an API key from Mining Pool Hub’s website. I pulled user data from the API, pulled hashing rates from “whattomine”, coin prices from “coinmarketcap” and forex prices from a service I googled.

I opted for using chartjs for the charts. The primary reason I used it was because it was open source and free. It ended up looking pretty nice.

Features were pretty much what I wanted it to have — being a user myself. I think dog fooding is incredibly important as a solo developer. The customer feedback loop is essentially reduced to nothing. I wanted to know how much I’m earning today, how long until my next payout and what I’ve been mining the last day. However, the features were largely limited to the API that MPH provided.

Stuggles

I especially had a fear of back end services such as databases. I deliberately used this as a selling point, that users’ data is completely theirs, and I don’t keep any of it. I made it open source for even more brownie points (but mainly because I wanted it to be something I could show future employers — I was a student at the time). However, this lead to huge pain points.

Get Sam Xie’s stories in your inbox

Join Medium for free to get updates from this writer.

The client side wasn’t able to do cross region requests (CORS) directly to the APIs. I had to host this CORS service that forwards traffic to the endpoint and returns it to the client. Luckily the service was open source, and all I had to do was host it on Heroku — which was quite simple. Though this quickly became a huge problem. Every client side request would be routed to the service. There was no caching of coin prices so coinmarketcap’s free API usage limits were quickly used up. This was also the problem with the other APIs I used. I was even hitting the limits from just developing. It simply was not scalable.

Launch

Being a relatively small app, I started building mid December and somewhat finished the majority of features by the end of December. I was adding tiny enhancements up until I launched mid February.

Reddit

I had not done any marketing in the past, so I thought maybe I could write some blog posts and post it on Reddit and call it a day.

Press enter or click to view image in full size
Reddit post

At the time of writing, it’s still the 19th most up-voted post on the subreddit of 4.9k members. Unfortunately, I linked it to my old domain (which I no longer own) and did not link to anywhere else. If I had linked it to a medium post instead, I would still be able to change the link in the medium post after the fact. But now the post is archived on reddit and forever points to a dead url…

Medium

I did write up a Medium post about how to maximise profits. This was an attempt to drive traffic from medium to my site. Luckily, that link is editable. This one totalled ~500 reads so far.

Quora

The final thing I did was crawl Quora and find some questions that I could answer. I answered two questions, both which linked to the medium post and the app. They’ve totalled about ~500 views over the two years.

Press enter or click to view image in full size
Quora stats

Here are the results

I launched on February 15th. It was hosted on some shared hosting from NameCheap so I used AwStats metrics to determine how many people visited. I was actually blown away. Being the first time I’ve ever launched anything, and seeing real people use something that I’ve built — I loved it.

The majority of the traffic came from Reddit. The medium post has only 700 views to date (as of June 1st 2019). The visits were also probably correlated to the interest in crypto currencies, as Bitcoin crashed down, so did my visits. I didn’t put any additional marketing efforts after that, and it kind of abandoned the project by now.

I didn’t earn a penny from this. But it was valuable experience and it felt empowering. Just having launched something, even if it wasn’t done properly made me want to do it again, and better.

Reflection

In terms of making money, I think the market was too small to begin with. I don’t think people would even want to pay for this service either — free alternatives were available. It was more of a side project to improve my skills in React, and build my portfolio.

I also think I launched at an appropriate time for the app. It had the bare minimum amount of features to compete with the alternative app. If it had some monetisation strategies, I think I would have put in more effort in marketing this product.

Nevertheless, a better effort in marketing could have been done throughout building the application. It followed the typical bad practice of building in secrecy, and then launching, and quickly cobbling some marketing.

Now I’m hooked and want to do this again, and to do it better.

https://mphwatch.samxie.net

--

--

Sam Xie

Written by Sam Xie

Engineer @ Cash App ✨ I write & build stuff on the side 💬 Analyse your Facebook/Whatsapp/Instagram chats at https://doubletext.me | More at https://samxie.net

Sam Xie

Published in Sam Xie

Engineering software to build and acquire assets that generate wealth.