# SoChain API reference

> The SoChain API (v3) reads Bitcoin, Litecoin, Dogecoin and Zcash blockchain data, plus their testnets: address balances, transactions, network and mempool state, and price. An investigator uses it to check an address's balance, including at a past block or date, and to read the inputs and outputs…

Source: https://osinttools.io/apis/sochain/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/sochain/

- Base URL: https://sochain.com/api/v3
- Authentication: API key in the `API-KEY` header. Get a key: https://sochain.com/api The docs say lookups also work without a key but do not say which endpoints need one.
- Free tier: yes
- Pricing: Subscription
- Rate limits: Monthly request quotas: Free 75,000, Hobby 500,000, Starter 1,500,000, Professional 15,000,000, Behemoth 150,000,000. Per-second limits are not stated.
- Vendor docs: https://sochain.com/api

## Overview

The SoChain API (v3) reads Bitcoin, Litecoin, Dogecoin and Zcash blockchain data, plus their testnets: address balances, transactions, network and mempool state, and price. An investigator uses it to check an address's balance, including at a past block or date, and to read the inputs and outputs of a transaction.

Calls are GET requests under `https://sochain.com/api/v3/`. Every endpoint takes a network code (`BTC`, `LTC`, `DOGE`, `ZEC`, `BTCTEST`, `LTCTEST`, `DOGETEST`, `ZECTEST`). The key goes in the `API-KEY` header. Success returns `"status": "success"` with the result in `data`; failures return `"status": "fail"` with `data.error_message`.

The docs list further endpoints (address summary, transactions, unspent outputs, balance history, address rank, poisoning check, counterparties, blocks, rich list); only the four below are described here.

## Errors

| Status | Meaning |
| --- | --- |
| 400 | Invalid height or time |
| 401 | Invalid key, missing key where needed, locked account, or monthly quota used up |
| 404 | Not found: check the network code, address or hash |
| 429 | Too many requests |
| 503 | Briefly unavailable |

## Addresses

### Confirmed and unconfirmed balance of an address, now or at a past block or date.

`GET /balance/{network}/{address}`

- Takes: Crypto wallet
- Footprint: passive (the target is not contacted)

Without height or time, returns the current balance. With one of them, returns the confirmed balance at the end of that block. Use one of height or time, not both.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `network` | path | string | yes | Network code Example: BTC One of: BTC, LTC, DOGE, ZEC, BTCTEST, LTCTEST, DOGETEST, ZECTEST |
| `address` | path | string | yes | The address to look up Example: bc1qexampleaddress0000000000000000000000 |
| `height` | query | integer | no | Balance at the end of this block Example: 800000 |
| `time` | query | string | no | Balance at the last block at or before this time: Unix seconds, a UTC date or a timestamp Example: 2025-12-31 |

Response fields:

- `status` (string): success or fail
- `data.confirmed` (string): Confirmed balance as an 8-decimal string
- `data.unconfirmed` (string): Change pending transactions would make; negative while an outgoing payment waits
- `data.height` (integer): Block used (only with height or time)
- `data.time` (integer): Block time in Unix seconds (only with height or time)
- `data.block_hash` (string): Block hash (only with height or time)
- `data.tip_height` (integer): Newest block when answered (only with height or time)

```bash
curl 'https://sochain.com/api/v3/balance/BTC/bc1qexampleaddress0000000000000000000000' \
  -H 'API-KEY: YOUR_API_KEY'
```

Example response (200):

```json
{
  "status": "success",
  "data": {
    "confirmed": "0.12000000",
    "unconfirmed": "0.00000000"
  }
}
```

## Transactions

### A transaction with its inputs, outputs, fee and confirmations.

`GET /transaction/{network}/{hash}`

- Takes: Crypto wallet
- Footprint: passive (the target is not contacted)

Returns identity and chain fields, sizes, values, price, and the lists of inputs and outputs with their addresses.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `network` | path | string | yes | Network code Example: BTC One of: BTC, LTC, DOGE, ZEC, BTCTEST, LTCTEST, DOGETEST, ZECTEST |
| `hash` | path | string | yes | Transaction hash Example: 0000000000000000000000000000000000000000000000000000000000000000 |

Response fields:

- `data.hash` (string): Transaction hash
- `data.block_hash` (string): Block containing it
- `data.block_height` (integer): Block height
- `data.time` (integer): Time
- `data.confirmations` (integer): Confirmations
- `data.inputs_value` (string): Total input value
- `data.outputs_value` (string): Total output value
- `data.fee` (string): Fee
- `data.inputs[].address` (string): Input address
- `data.inputs[].value` (string): Input value
- `data.outputs[].address` (string): Output address
- `data.outputs[].value` (string): Output value
- `data.outputs[].is_change` (boolean): Whether the output is judged to be change

```bash
curl 'https://sochain.com/api/v3/transaction/BTC/0000000000000000000000000000000000000000000000000000000000000000' \
  -H 'API-KEY: YOUR_API_KEY'
```

Example response (200):

```json
{
  "status": "success",
  "data": {
    "hash": "0000000000000000000000000000000000000000000000000000000000000000",
    "block_height": 800000,
    "confirmations": 12,
    "inputs_value": "0.50000000",
    "outputs_value": "0.49990000",
    "fee": "0.00010000",
    "inputs": [
      {
        "address": "bc1qexampleinput00000000000000000000000",
        "value": "0.50000000"
      }
    ],
    "outputs": [
      {
        "address": "bc1qexampleoutput0000000000000000000000",
        "value": "0.49990000",
        "is_change": false
      }
    ]
  }
}
```

## Network

### Block count, best block hash, hash rate and mempool fee estimates for a network.

`GET /network_info/{network}`

- Footprint: passive (the target is not contacted)

Returns chain tip data and mempool statistics, including fee rates per projected block.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `network` | path | string | yes | Network code Example: BTC One of: BTC, LTC, DOGE, ZEC, BTCTEST, LTCTEST, DOGETEST, ZECTEST |

Response fields:

- `data.block_count` (integer): Number of blocks
- `data.best_block_hash` (string): Hash of the newest block
- `data.hashrate` (string): Network hash rate
- `data.mempool.mempool_txs` (integer): Transactions in the mempool
- `data.mempool.blocks[].median_fee_rate` (number): Median fee rate of a projected block

```bash
curl 'https://sochain.com/api/v3/network_info/BTC' \
  -H 'API-KEY: YOUR_API_KEY'
```

Example response (200):

```json
{
  "status": "success",
  "data": {
    "block_count": 800000,
    "best_block_hash": "0000000000000000000000000000000000000000000000000000000000000000",
    "mempool": {
      "mempool_txs": 1500,
      "blocks": [
        {
          "block_num": 1,
          "median_fee_rate": 12.5
        }
      ]
    }
  }
}
```

### Current price of the network's coin.

`GET /price/{network}`

- Footprint: passive (the target is not contacted)

Test networks are priced at 0.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `network` | path | string | yes | Network code Example: BTC One of: BTC, LTC, DOGE, ZEC, BTCTEST, LTCTEST, DOGETEST, ZECTEST |

Response fields:

- `data.value` (string): Price
- `data.currency` (string): Currency, for example USD
- `data.as_of` (string): Time of the price

```bash
curl 'https://sochain.com/api/v3/price/BTC' \
  -H 'API-KEY: YOUR_API_KEY'
```

Example response (200):

```json
{
  "status": "success",
  "data": {
    "value": "50000.00",
    "currency": "USD",
    "as_of": "2026-01-01T12:00:00Z"
  }
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
