# Blockchain.com Explorer API

> Bitcoin blocks and mempool from the Blockchain.com explorer: recent blocks, one block by height or hash, unconfirmed transactions.

Category: Finance & Crypto. Region: Global. 3 endpoints at `https://api.hoshime.com/v1/blockchaininfo/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/blockchaininfo
## GET /v1/blockchaininfo/blocks

The newest Bitcoin blocks: height, hash, time, transactions, size, fees and mining pool.

Scope: `social:read` · Units: 1 · Cached: 1 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `bits` (integer (int64)), `feesSat` (integer (int64)), `hash` (string), `height` (integer (int64)), `merkleRoot` (string), `minedAt` (string), `miner` (string), `nonce` (integer (int64)), `outputSat` (integer (int64)), `previousHash` (string), `priceUsd` (string), `size` (integer (int64)), `subsidySat` (integer (int64)), `txCount` (integer (int64)), `url` (string), `version` (integer (int64)), `weight` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/blockchaininfo/blocks" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/blockchaininfo/block

One Bitcoin block by hash or height: time, transactions, size, weight, fees, nonce and the price when it was mined.

Scope: `social:read` · Units: 1 · Cached: 10 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Block height such as 840000, block hash (64 hex characters) or a Blockchain.com block URL. (e.g. 840000) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `bits` (integer (int64)), `feesSat` (integer (int64)), `hash` (string), `height` (integer (int64)), `merkleRoot` (string), `minedAt` (string), `miner` (string), `nonce` (integer (int64)), `outputSat` (integer (int64)), `previousHash` (string), `priceUsd` (string), `size` (integer (int64)), `subsidySat` (integer (int64)), `txCount` (integer (int64)), `url` (string), `version` (integer (int64)), `weight` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/blockchaininfo/block?id=840000" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/blockchaininfo/mempool

Unconfirmed Bitcoin transactions waiting in the mempool, with size, fee and value.

Scope: `social:read` · Units: 1 · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `feeSat` (integer (int64)), `hash` (string), `inputCount` (integer (int64)), `outputCount` (integer (int64)), `outputSat` (integer (int64)), `seenAt` (string), `size` (integer (int64)), `url` (string), `weight` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/blockchaininfo/mempool" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
