Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
BlockBook vs Insight API in rest.bitcoin.com

Overview

This document is an analysis of the endpoints in rest.bitcoin.com that rely on Insight API. Each endpoint is analyized with respect to replacing the use of Insight API.

My take-away from this analysis is that BlockBook API is very close to a drop-in replacement for Insight API. If there is ever any risk of Insight API ending support or getting forked off the network, BlockBook API would be an adaquate replacement. If the BITBOX team wants to be proactive, we could create additional endpoints and slowly begin to phase out Insight API, giving our users time to migrate.

There are approximately 5 endpoints on rest.bitcoin.com that call Insight API. Here is how they compare with BlockBook API:

address/details/:address

address/utxos/:address

address/transactions/:address

  • Example rest.bitcoin.com call
  • Endpoint is missing in Blockbook. But same output can be achieved by getting transactions list from address/details then iteratively calling rawTransaction/getRawTransaction/:txid on each TXID returned.

transaction/details/:txid

block/detailsByHash/:hash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.