Skip to content

Commit 0af3aca

Browse files
authored
docs: Add blockstream.info's public API URLs
And mention the possibility of self-hosting. Refs #224
1 parent 089da01 commit 0af3aca

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

API.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22

33
JSON over RESTful HTTP. Amounts are always represented in satoshis.
44

5+
The blockstream.info public APIs are available at:
6+
- Bitcoin: https://blockstream.info/api/
7+
- Bitcoin Testnet: https://blockstream.info/testnet/api/
8+
- Liquid: https://blockstream.info/liquid/api/
9+
10+
For example:
11+
```bash
12+
$ curl https://blockstream.info/api/blocks/tip/hash
13+
```
14+
15+
You can also [self-host the Esplora API server](https://github.com/Blockstream/esplora#how-to-run-the-explorer-for-bitcoin-mainnet), which provides better privacy and security.
16+
517
## Transactions
618

719
### `GET /tx/:txid`

0 commit comments

Comments
 (0)