chain.so API - Get Transaction Data

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

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

You can try Bitcoin chain.so API to get Bitcoin transaction data with any Web browser. Here is what I did to get information of a transaction from block # 500000.

GET https://chain.so/api/v2/get_tx/BTC
  /83eeaecaf531e5239ffc3ba7ff583c696f7dbe3610f0d672d41e0b9443632c82

{"status": "success",
 "data": {
  "network": "BTC",
  "txid": "83eeaecaf531e5239ffc3ba7ff583c696f7dbe3610f0d672d41e0b9443632c82",
  "blockhash": "00000000000000000024fb37364cbf81fd49cc2d51c09c75c35433c3a1945d04",
  "confirmations": 214797,
  "time": 1513622125,
  "inputs": [
   {"input_no": 0,
    "value": "0.04911957",
    "address": "11L4DHHbSsJZYm9wM7hmim9NescZ2cJqH",
    "type": "pubkeyhash",
    "script": "304402205535a9ac25844514828bff3580120d5ad... 0219fbee4b9cc1218...",
    "sequence": 4294967295,
    "witness": null,
    "from_output": {
     "txid": "15b91bcf8b2b9ea46d0daab60aaa2e99b15a5fb37d9d4568d4c060e515e13130",
     "output_no": 1
    }
   },
   {"input_no": 1,
    "value": "0.08075157",
    "address": "1872JyingFrwhdWsvxwd2f1xRCUouJiDpv",
    "type": "pubkeyhash",
    "script": "304402203a28d10c786907fcb71c7bf69c507d58... 030be5aa6d5de8c6dd...",
    "sequence": 4294967295,
    "witness": null,
    "from_output": {
     "txid": "840ac7a55498c6746b9d7460a348f79e2f35db4a9696bef762d975e7e1deeff2",
     "output_no": 12
    }
   }
  ],
  "outputs": [
    {
      "output_no": 0,
      "value": "0.00069302",
      "address": "1NzN4y4eZZjtKVZjCVWkCpeqb9mTmAvCWt",
      "type": "pubkeyhash",
      "script": "OP_DUP OP_HASH160 f133f0339987cd84b6017... OP_EQUALVERIFY OP_CHECKSIG"
    },
    {
      "output_no": 1,
      "value": "0.12900349",
      "address": "1cmY5nUiSEDuzWPL9tYjAsVa5PcGfJwwM",
      "type": "pubkeyhash",
      "script": "OP_DUP OP_HASH160 06c3bc40cde01312e2b24... OP_EQUALVERIFY OP_CHECKSIG"
    }
  ],
  "tx_hex": "01000000023031e115e560c0d468459d7db35f5ab1992eaa0ab6aa0d6da4...",
  "network_fee": "0.00017463",
  "size": 372,
  "vsize": 372,
  "version": 1,
  "locktime": 0
}
}

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