chain.so API - Get Block Data

This section describes how to get block data with chain.so API.

chain.so API can be used to get Bitcoin block data:

Both services requires you to provide the block hash to identify the bock. If you don't know the block hash, you can get it use the "/api/block-index/[:height]" service.

You can try chain.so API to get Bitcoin block data with any Web browser. Here is what I did to get information of block # 500 on the Bitcoin test network:

GET https://chain.so/api/v2/get_block/BTC/500000

{"status": "success",
 "data": {
  "network": "BTC",
  "blockhash": "00000000000000000024fb37364cbf81fd49cc2d51c09c75c35433c3a1945d04",
  "block_no": 500000,
  "mining_difficulty": "1873105475221.611",
  "time": 1513622125,
  "confirmations": 214796,
  "is_orphan": false,
  "txs": [
   "2157b554dcfda405233906e461ee593875ae4b1b97615872db6a25130ecc1dd6",
   "fe6c48bbfdc025670f4db0340650ba5a50f9307b091d9aaa19aa44291961c69f",
   "...",
   "c78c614d47c0facd1162d7c40bbc6a2ad3d96aacd4afdfef1453069b1a5b8345"
  ],
  "merkleroot": "31951c69428a95a46b517ffb0de12fec1bd0b2392aec07b64573e03ded31621f",
  "previous_blockhash": "0000000000000000007962066dcd6675830883516bcf40047d42740a85eb2919",
  "next_blockhash": "0000000000000000005c9959b3216f8640f94ec96edea69fe12ad7dee8b74e92",
  "size": 1048581
 }
}

Table of Contents

 About This Book

 Introduction of Bitcoin

 Bitcoin Blockchain

 Bitcoin Wallet

 Bitcoin Core

 Bitcoin Transaction

 Bitcoin-Qt - Bitcoin Core GUI

 Bitcoin Mining

 Bitcoin Consensus Rules

 Bitcoin Block Data Structure

 Bitcoin Transaction Data Structure

Bitcoin Blockchain APIs

 Introduction of chain.so API

chain.so API - Get Block Data

 chain.so API - Get Transaction Data

 chain.so API - Get Address Data

 Introduction of blockchain.com API

 Introduction of blockexplorer.com API

 Copay - Bitcoin Wallet

 Archived Tutorials

 References

 Full Version in PDF/EPUB