Bitcoin Tutorials - Herong's Tutorial Examples
∟Bitcoin Blockchain APIs
∟Introduction of blockexplorer.com API
This section provides an introduction of Bitcoin blockexplorer.com API.
Back in 2018, Bitcoin blockexplorer.com API was available for
the public to access Bitcoin data blocks and transactions.
However, it is switched to Handshake cryptocurrency now.
blockexplorer.com API used to offer the following services:
- GET /api/block-index/[:height] -
Get block hash by height.
- GET /api/block/[:hash] -
Get block properties by block hash.
- GET /api/rawblock/[:hash] -
Get block raw data by block hash.
- GET /api/tx/[:txid] -
Get transaction properties by transaction ID.
- GET /api/rawtx/[:txid] -
Get transaction raw data by transaction ID.
- GET /api/addr-validate/[:addr] -
Validate address ID. Returns true if valid, false otherwise.
- GET /api/addr/[:addr] -
Get address properties, including associated transactions, by address ID.
- GET /api/addr/[:addr]/balance -
Get balance by address ID.
- GET /api/addr/[:addr]/totalReceived -
Get total received fund by address ID.
- GET /api/addr/[:addr]/totalSent -
Get total sent fund by address ID.
- GET /api/addr/[:addr]/unconfirmedBalance -
Get unconfirmed balance by address ID.
- GET /api/addr/[:addr]/utxo -
Get Unspent Transaction Outputs (UTXO),
a list of received transaction outputs that have not spent yet, by address ID.
- GET /api/addrs/[:addrs]/utxo -
Get Unspent Transaction Outputs (UTXO) by comma separated list of address IDs.
- GET /api/addrs/[:addrs]/txs -
Get transactions by comma separated list of address IDs.
- GET /api/txs/?block=hash -
Get transactions of a block by block hash.
- GET /api/txs/?address=addr -
Get transactions of an address by address ID.
- GET /api/status?q=xxx -
Get status of Bitcoin network, where xxx can be:
getInfo, getBlockCount, getDifficulty, getBestBlockHash, getLastBlockHash.
- GET /api/sync -
Get synchronization status of the blockexplorer.com Bitcoin server.
- POST /api/tx/send -
Post a new transaction to Bitcoin network.
Visit https://blockexplorer.com/api-ref
to see more details.
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