Outdated: Get Bitcoin Transaction Data

This section provides a tutorial example on how to use the Get Bitcoin Transaction Data operation provided by blockexplorer.com.

The operation of getting the Bitcoin Transaction Data can be described as:

The simplest way to use this Web service is run a Web browser and enter the URL combining the end point and the resource path with given parameter values.

For example, if you want see the content of the first transaction of second block on Bitcoin blockchain, run three calls:

Call #1: 
https://blockexplorer.com/api/block-index/1

{"blockHash":"00000000839a8e6886ab5951d76f411475428afc90947ee320161bbf18eb6048"}

Call #2:
https://blockexplorer.com/api/block
   /00000000839a8e6886ab5951d76f411475428afc90947ee320161bbf18eb6048

{"hash":"00000000839a8e6886ab5951d76f411475428afc90947ee320161bbf18eb6048",
 "size":215,
 "height":1,
 "version":1,
 "merkleroot":"0e3e2357e806b6cdb1f70b54c3a3a17b6714ee1f0e68bebb44a74b1efd512098",
 "tx":["0e3e2357e806b6cdb1f70b54c3a3a17b6714ee1f0e68bebb44a74b1efd512098"],
 ...
}

Call #3:
https://blockexplorer.com/api/tx
   /0e3e2357e806b6cdb1f70b54c3a3a17b6714ee1f0e68bebb44a74b1efd512098

{"txid":"0e3e2357e806b6cdb1f70b54c3a3a17b6714ee1f0e68bebb44a74b1efd512098",
 "version":1,
 "locktime":0,
 "vin":[{"coinbase":"04ffff001d0104", "sequence":4294967295, "n":0}],
 "vout":[{"value":"50.00000000", "n":0, "scriptPubKey":{
  "hex":"410496b538e853519c726a2c91e61ec11600ae1390813a627c66fb8be7947be63c52da7...
  "asm":"0496b538e853519c726a2c91e61ec11600ae1390813a627c66fb8be7947be63c52da758...
  "addresses":["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"],
  "type":"pubkeyhash"
  },
 "spentTxId":null,
 "spentIndex":null,
 "spentHeight":null}],
 "blockhash":"00000000839a8e6886ab5951d76f411475428afc90947ee320161bbf18eb6048",
 "blockheight":1,
 "confirmations":544662,
 "time":1231469665,
 "blocktime":1231469665,
 "isCoinBase":true,
 "valueOut":50,
 "size":134
}

The above transaction tells us that 50 Bitcoins were transafered from the coinbase to wallet 12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX. Most likely, this was a reward transfer for mining the first block of the very first Bitcoin block.

By the way, 50 Bitcoins is worth about 50,000 US dollars in 2018.

Table of Contents

 About This Book

 SoapUI - Web Service Testing Tool

 SOAP Web Service and SoapUI

 REST Web Service and SoapUI

 LatLonListCityNames - Return Latitudes and Longitudes of US Cities

 LatLonListZipCode - Return Latitudes and Longitudes of US Zip Code

 NDFDgenByDay - US Weather Forecast by Day

 NDFDgen - US-Weather Forecast for a Single Location

 Currency Exchange Rate

 Currency Converter by kowabunga.net

 Bitcoin Blockchain Data API (or Explorer)

 flickr.interestingness.getList - Get Interesting Photos

 UUID/GUID Generator

 NumberToWords - Convert Number in Digits to Words

 TitleCaseWordsWithToken - Words to Title Case Format

 RSC - ChemSpider APIs

 Discontinued: GetCountries - Get All Countries and Territories

 Discontinued: GetCurrencies - Get Currencies from All Countries

 Discontinued: GetGMTbyCountry - Get GMT Information of a Given Country

 Discontinued: GetISD - Get ISD Phone Code of a Given Country

 Discontinued: GetCitiesByCountry - Get Cities by Country

 Discontinued: GetInfoByState - Get ZIP Codes of a Given US State

 Discontinued: GetAirportInformationByCountry - Get Airport Code by Country

 Discontinued: GetGeoIP - Get Country by IP Address

 Discontinued: ConvertTemp - Convert Temperature Unit

 Discontinued: ChangeLengthUnit - Convert Length Unit

 Discontinued: ConvertWeight - Convert Weight Unit

 Discontinued: ChangeAreaUnit - Convert Area Unit

 Discontinued: Code39 - Generate Bar Code Images in Code 39 Format

 Discontinued: GenerateBarCode - Generate Bar Code Images

 Discontinued: GetMortgagePayment - Calculate Mortgage Payment

 Discontinued: ConversionRate - Get Currency Exchange Rate

 Discontinued: GetQuote - Get Stock Quote

 Discontinued: GetSunSetRiseTime - Get Sunrise and Sunset Time

 Discontinued: GetWeatherByZipCode - Get Weather by ZIP Code in US

 Discontinued: getTime - Get the Current Time

 Discontinued: questionSearch - Search Yahoo! Questions and Answers

 Discontinued: Hotwire - Get Travel Ticker Deals

Outdated Tutorials

 Outdated: Get Bitcoin Blockchain Network Info

 Outdated: Get Bitcoin Block Data

Outdated: Get Bitcoin Transaction Data

 Outdated: Get Wallet Content by Address

 Outdated: Get Wallet Property by Address

 Outdated: Downloading and Installing SoapUI 5.2

 Outdated: Downloading and Installing SoapUI 3.6.1

 References

 Full Version in PDF/EPUB