Bitcoin Tutorials - Herong's Tutorial Examples
∟blockexplorer.com API
∟Introduction of blockexplorer.com API
This section provides an introduction of Bitcoin blockexplorer.com API.
Bitcoin blockexplorer.com API is a REST API provided by blockexplorer.com for
the public to access Bitcoin data blocks and transactions.
It offers 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
►blockexplorer.com API
►Introduction of blockexplorer.com API
blockexplorer.com API - Get Block Data
blockexplorer.com API - Get Transaction Data
blockexplorer.com API - Get Address Data
Copay - Bitcoin Wallet
References
Full Version in PDF/EPUB