5 ms·
Show HN: HelloBlock – Focus on building Bitcoin apps, not infrastructure
- jeynepoole 13y agoNice looking site :) But, doesn't Blockchain.info already offer a developer API?
- sida 13y agoGlad you brought this up. Prior to building helloblock, I built a couple of other open source apps (tippercoin / sparecoins) which used the blockchain.info API. There were a few problems that I encountered. Blockchain.info is focused on consumer and their API is structured to back their consumer facing sites. As such, they have no testnet support. This is a deal breaker. Because that means, any integration tests come at a tangible financial cost. Furthermore, their API has always been a documented internal API rather than a public one. That meant, there is no versioning on the API and they sometimes make breaking changes without deprecation notice. The lack of versioning caused a bit of issues. And in general, I found the API is set up in a way that is, frankly, a bit strange. For example, instead of a status code of 400 for an client side error, they generate a 200 status code with an error text in the body. That also caused issues for debugging and error handling too. In the end, the various quirks finally led us to build this API.
- deftnerd 13y agoYou forgot another reason. I've been trying to run several businesses on the BlockChain.info API and it's just plain unreliable. Funds forwarding and notifications of transactions can take hours and that's just not acceptable if you're trying to run a business.
- sida 13y agoDo you mean the HTTP webhook for notifications of transactions?
- deftnerd 13y agoYes, but only with the transaction forwarding feature. They offer a free service where you can give their API a destination address and a webhook and they'll give you back a individual deposit address. You can then give that deposit address to your customer. In theory, the customer is supposed to make the payment, Blockchain.info sees the transaction, notifies your webhook, and forwards the payment to the destination address. The problem is that the system that looks for the transactions sometimes doesn't see them for hours and the webhook isn't notified until the payment is swept. For example, one of my customers transactions was this one. https://blockchain.info/address/1PD8c6fjiYT4Hdq3SFavLBGNgV1BY2Pgfx https://blockchain.info/address/1PD8c6fjiYT4Hdq3SFavLBGNgV1B... The money was received but it took 2 hours and 15 minutes for my webhook to be notified that payment was received and for it to be forwarded. In the meantime, the customer who was told that the transaction would be approved after 1 block confirmation was furious. This seems to happen about 30% of the time with their API.
- sida 13y agoWe are about to release a webhook feature which you can register your deposit addresses (you can also set it at a predetermined confirmation count). That way at least you will get notified immediately (so you can confirm it with your customer). although the forwarding is still up to blockchain.info to be timely. Contact us over scott@helloblock.io if you are interested.
- mike_hearn 13y agoWhy don't you just .... use Bitcoin Core. Or bitcoinj, or any API that doesn't rely on third party infrastructure?
- mriou 13y agoI'd be curious to have your perspective on the risks of relying on 3rd party infrastructure. That 3rd party can't really try to feed wrong blocks or transactions, it would ruin its business. Then from a practical standpoint, the only attack it can run is a Sybil attack which, when not spending any transaction, can't result in double-spends. So what do you see as a problem relying on 3rd party infra for Bitcoin development?
- abstrct 13y agoYa this is really slick looking. There are some issues here and there but it's a new site so that is to be expected. The close tie in with testnet is a nice touch. A lot of developers seem to forget that testnet is there to help them. Do you plan on trying to farm additional details regarding transactions such as estimated originating IP address or known address labels?
- sida 13y agoWe already collect that information about relaying IPs (although you can never really be sure who is the originating IP). We have custom nodes that specifically listen for that information. However, we decided this wasn't useful enough to be included in the versioned API. Although, we are about to release labs.helloblock API, which will include a bunch of experimental features, including information about IP addresses. Out of curiosity, what do you plan to use information about IP addresses for?
- abstrct 13y agoI work in digital forensics so information like an IP address can be just another piece of the puzzle. It's not something we would base our entire case around but I'm sure it would be helpful in some way. I certainly understand that it is just an estimate though, thanks to the beauty of the btc network in general and other fun tools like tor and your own transaction relay.
- jonpaul 13y agoAs a consumer of the API, I can attest that the developers of HelloBlock have a put a lot of thought into the API. Developers of Bitcoin apps might find the Testnet faucet particularly useful: https://helloblock.io/docs/ref#faucet https://helloblock.io/docs/ref#faucet
- sida 13y agoIn particular, these endpoints are designed to be used as part of the 'before hook' in your integration tests so that you can start with fresh testnet coins in every test.
- abstrct 13y agoDo you have any plans to offer the API for altcoins as well?
- sida 13y agoWhich altcoin would you like to see support for? Although, given the similarities, if we can probably support all the popular altcoins if we do decide to extend support.
- abstrct 13y agoHonestly, none in particular at the moment and yet also any that's needed. I just see a situation where if I did need to work with two currencies, having an API for one and then building the infrastructure in house for the other seems silly, especially since most alt coins are literally clones of each other.
- sida 13y agoThat is true. I can certainly see that. If enough developers want support for altcoin. I think that wouldn't too hard to do
- lmm 13y ago> Which altcoin would you like to see support for? In all seriousness, dogecoin. I'm interested in the kind of apps where low transaction fees and a tipping-oriented culture are necessary.
- jensenbox 13y agoThey are clearly a mac shop - their CSS requests the 'menlo' font only for their code examples. Looks like Times Roman on everything I own :)
- gidgreen 13y agoThose poking around the blockchain might also be interested in coinsecrets.org which shows all OP_RETURN metadata on the main blockchain as well as testnet.
- dang 13y agoI took "Show HN" out of the title. "Show HN" is for products and projects that readers can play with now, not just sign up for. Edit: That's the principle, but it didn't apply to this case. I reverted the change. I'm posting comments like this for two reasons: for greater transparency, and so you all can tell me when I get it wrong. There is too much material on HN for anyone to evaluate it all accurately, so we're relying on you. Our goal is to have the best stories on the front page.
- sida 13y agodang, this is not just to sign up for. The project is actually fully functional. The link links to the front page, but if you see the top tab, you will both the API documentations and the blockexplorer.
- dang 13y agoSo everyone can try the product now? In that case, I'll put it back. Sorry for getting it wrong in your case. It's often difficult to make this call, but I do think it's important that HN distinguish email signup and fundraising posts from things people can actually play with. I'm going to make this thread drop to the bottom to clear the way for on-topic comment. Best of luck!
- williamcotton 13y agoHave you put any thought in to enabling CORS?
- sida 13y agoThat should already be supported. Are you having issues?
- williamcotton 13y agoNope, I haven't tried, I was just looking for a quick answer without having to try it out myself! Thanks for facilitating my laziness. :)