Bitcoin Tutorials - Herong's Tutorial Examples - v1.06, by Herong Yang
Introduction of chain.so API
This section provides an introduction of Bitcoin chain.so API.
chain.so (SoChain) API is a public API that provides you the easiest, most cost-effective way to build applications on Bitcoin, Litecoin, Dogecoin, Zcash, and Dash. We also offer Test Networks for developers to get started in a sandbox environment.
Currently, chain.so API supports the following cryptocurrency blockchain networks:
Network Network Name Code ---------- ------- Bitcoin BTC Dash DASH Zcash ZEC Dogecoin DOGE Litecoin LTC Bitcoin Test BTCTEST Dash Test DASHTEST Zcash Test ZECTEST Dogecoin Test DOGETEST Litecoin Test LTCTEST
The API base URL is https://chain.so/api/v2, and it supports services like these:
For example, if you want to know the current price of Bitcoin in USD, you can run the following API:
GET https://chain.so/api/v2/get_price/BTC/USD { "status": "success", "data": { "network": "BTC", "prices": [ { "price": "47082.21", "price_base": "USD", "exchange": "bitpay", "time": 1639913903 }, { "price": "47086.86", "price_base": "USD", "exchange": "coinbase", "time": 1639913922 }, { "price": "47080.19", "price_base": "USD", "exchange": "bitstamp", "time": 1639913923 }, { "price": "47094.77", "price_base": "USD", "exchange": "gemini", "time": 1639913925 }, { "price": "47106.0", "price_base": "USD", "exchange": "bitfinex", "time": 1639913904 } ] } }
Visit https://chain.so/api/ to see more details.
Table of Contents
Bitcoin Transaction Data Structure
chain.so API - Get Transaction Data
chain.so API - Get Address Data
Introduction of blockchain.com API