Bitcoin Tutorials - Herong's Tutorial Examples - v1.06, by Herong Yang
chain.so API - Get Address Data
This section describes how to get Address data with chain.so API.
chain.so API can be used to get Bitcoin address data:
These services requires you to provide the address ID to identify the address. Address IDs are provided by your Bitcoin wallet, and other people's wallet.
You can try Bitcoin chain.so API to get Bitcoin address data with any Web browser. Here is what I did to get information of the address used in a transaction in block # 500000
GET https://chain.so/api/v2/get_address_balance/BTC/11L4DHHbSsJZYm9wM7hmim9NescZ2cJqH {"status": "success", "data": { "network": "BTC", "address": "11L4DHHbSsJZYm9wM7hmim9NescZ2cJqH", "confirmed_balance": "0.00000000", "unconfirmed_balance": "0.00000000" } } GET https://chain.so/api/v2/get_tx_received/BTC/11L4DHHbSsJZYm9wM7hmim9NescZ2cJqH {"status": "success", "data": { "network": "BTC", "address": "11L4DHHbSsJZYm9wM7hmim9NescZ2cJqH", "txs": [ {"txid": "15b91bcf8b2b9ea46d0daab60aaa2e99b15a5fb37d9d4568d4c060e515e13130", "output_no": 1, "script_asm": "OP_DUP OP_HASH160 000fe818a1434f... OP_EQUALVERIFY OP_CHECKSIG", "script_hex": "76a914000fe818a1434f1d37c9ad42afe8c8a3562201eb88ac", "value": "0.04911957", "confirmations": 216178, "time": 1512936553 } ] } } GET https://chain.so/api/v2/get_tx_spent/BTC/11L4DHHbSsJZYm9wM7hmim9NescZ2cJqH {"status": "success", "data": { "network": "BTC", "address": "11L4DHHbSsJZYm9wM7hmim9NescZ2cJqH", "txs": [ {"txid": "83eeaecaf531e5239ffc3ba7ff583c696f7dbe3610f0d672d41e0b9443632c82", "input_no": 0, "script_asm": 304402205535a9ac25844514828bff3580120d5ad... 0219fbee4b9cc1218...", "script_hex": "47304402205535a9ac25844514828bff3580120d5...0a1b25e020c0258f9d64", "witness": null, "value": "0.04911957", "confirmations": 214799, "time": 1513622125 } ] } }
Table of Contents
Bitcoin Transaction Data Structure
chain.so API - Get Transaction Data
►chain.so API - Get Address Data
Introduction of blockchain.com API