Archived: blockexplorer.com API - Get Transaction Data

This section describes how to get transaction data with blockexplorer.com API.

Bitcoin blockexplorer.com API offers two primary services to get Bitcoin transaction data:

Both services requires you to provide the transaction ID to identify the transaction. Transaction IDs are provided as properties of blocks, and associated with wallet addresses.

You can try Bitcoin blockexplorer.com API to get Bitcoin transaction data with any Web browser. Here is what I did to get information of the transaction that provided by some Bitcoin fund on the Bitcoin test network:

GET https://testnet.blockexplorer.com/api/rawtx
   /00000000a2424460c992803ed44cfe0c0333e91af04fde9a6a97b468bf1b5f70

{"rawtx":"0200000001aa4bc55d88477cc8921c4769e84882e99fc2961219a796b4c4..."}

GET https://testnet.blockexplorer.com/api/tx
   /e22d5998a43e3e1d81784e6e92988d1c4eae77cd0e439542337e48a786c75e69

{"txid":"e22d5998a43e3e1d81784e6e92988d1c4eae77cd0e439542337e48a786c75e69",
"version":2,"locktime":1281294,"vin":[{"txid":"6f6e35c52b7a00c4b496a7191296
c29fe98248e869471c92c87c47885dc54baa","vout":0,"scriptSig":{"asm":"30440220
2ab88452cd720f3e42731a5fd1345e5f2c6888a3d0a0568abf315c46e6b038cf0220394e02c
12aecd9bb2356b4b09980476a4cb347b9e96088f39c995d6d0302fd76[ALL] 
0387ab1fa2aedc1dfe5fd8fba9275455b392db1e3b7bad3a8d611fb3cdb789f84d","hex":"
47304402202ab88452cd720f3e42731a5fd1345e5f2c6888a3d0a0568abf315c46e6b038cf0
220394e02c12aecd9bb2356b4b09980476a4cb347b9e96088f39c995d6d0302fd7601210387
ab1fa2aedc1dfe5fd8fba9275455b392db1e3b7bad3a8d611fb3cdb789f84d"},"sequence"
:4294967294,"n":0,"addr":"mjQJmi2dKxVNRcMHXsqd9WnBM1X64oz64R","valueSat":85
458403017,"value":854.58403017,"doubleSpentTxID":null}],"vout":[{"value":"8
47.54623264","n":0,"scriptPubKey":{"hex":"76a914c14be92816c5ccfa8c742acba43
ee5382ce22eac88ac","asm":"OP_DUP OP_HASH160 
c14be92816c5ccfa8c742acba43ee5382ce22eac OP_EQUALVERIFY 
OP_CHECKSIG","addresses":["my91eT3mdFdo9gfe85wu2Ex35sNRS3uVwJ"],"type":"pub
keyhash"},"spentTxId":"6e5deceb8548bd4d1b2995fed73b63ed8aa6114f5f7005c3bbf0
cf9d16312918","spentIndex":0,"spentHeight":1281296},{"value":"7.03666753","
n":1,"scriptPubKey":{"hex":"76a9145e25fd265324c70a1a8bbbeb969614d39f6f66478
8ac","asm":"OP_DUP OP_HASH160 5e25fd265324c70a1a8bbbeb969614d39f6f6647 
OP_EQUALVERIFY 
OP_CHECKSIG","addresses":["mp6mKbgWE25PyyX63zJ8SRibrKugHMkJDE"],"type":"pub
keyhash"},"spentTxId":null,"spentIndex":null,"spentHeight":null}],"blockhas
h":"0000000000000db32dee811e7a0c1caefc60fbbbf5db88464877f4c97988ea14","bloc
kheight":1281295,"confirmations":2211,"time":1518381726,"blocktime":1518381
726,"valueOut":854.58290017,"size":225,"valueIn":854.58403017,"fees":0.0011
3}

Out of this transaction, I received 7.03666753 BTC!

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

 Copay - Bitcoin Wallet

Archived Tutorials

 Archived: blockexplorer.com - Bitcoin Block Explorer

 Archived: blockexplorer.com - View Old Block

 Archived: blockexplorer.com - View Transaction

 Archived: blockexplorer.com - View Address

 Archived: blockexplorer.com API - Get Block Data

Archived: blockexplorer.com API - Get Transaction Data

 Archived: blockexplorer.com API - Get Address Data

 References

 Full Version in PDF/EPUB