Skip to content
OSINTtools.io

SoChain API

Block explorer and API for Bitcoin, Litecoin, Dogecoin and Zcash with address, transaction, rich list and mempool views.

Base URL
https://sochain.com/api/v3
Sign-in
API key
Free tier
Free tier
Pricing
Subscription
Format
REST
Endpoints
4

Compiled by OSINTtools.io editors from sochain.com · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

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.

Quick start

  1. Get a key

    Create an account with SoChain and copy your api key (free tier). Where to get it

  2. Make your first request

    Confirmed and unconfirmed balance of an address, now or at a past block or date.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://sochain.com/api/v3/balance/BTC/bc1qexampleaddress0000000000000000000000' \
      -H 'API-KEY: YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this.

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

Authentication

Send your API key in the API-KEY header of every request.

The docs say lookups also work without a key but do not say which endpoints need one.

Get a key from SoChain

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

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.

Free tier. Pricing: subscription.

Errors

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

Addresses

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.

Path parameters

networkstringrequired

Network code

Example: BTCOne of: BTC, LTC, DOGE, ZEC, BTCTEST, LTCTEST, DOGETEST, ZECTEST
addressstringrequiredtakes your crypto wallet

The address to look up

Example: bc1qexampleaddress0000000000000000000000

Query parameters

heightinteger

Balance at the end of this block

Example: 800000
timestring

Balance at the last block at or before this time: Unix seconds, a UTC date or a timestamp

Example: 2025-12-31
Response fields · 7Show

statusstring

success or fail

confirmedstring

Confirmed balance as an 8-decimal string

unconfirmedstring

Change pending transactions would make; negative while an outgoing payment waits

heightinteger

Block used (only with height or time)

timeinteger

Block time in Unix seconds (only with height or time)

block_hashstring

Block hash (only with height or time)

tip_heightinteger

Newest block when answered (only with height or time)

curl 'https://sochain.com/api/v3/balance/BTC/bc1qexampleaddress0000000000000000000000' \
  -H 'API-KEY: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "status": "success",
  "data": {
    "confirmed": "0.12000000",
    "unconfirmed": "0.00000000"
  }
}

Transactions

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

Path parameters

networkstringrequired

Network code

Example: BTCOne of: BTC, LTC, DOGE, ZEC, BTCTEST, LTCTEST, DOGETEST, ZECTEST
hashstringrequiredtakes your crypto wallet

Transaction hash

Example: 0000000000000000000000000000000000000000000000000000000000000000
Response fields · 13Show

hashstring

Transaction hash

block_hashstring

Block containing it

block_heightinteger

Block height

timeinteger

Time

confirmationsinteger

Confirmations

inputs_valuestring

Total input value

outputs_valuestring

Total output value

feestring

Fee

addressstring

Input address

valuestring

Input value

addressstring

Output address

valuestring

Output value

is_changeboolean

Whether the output is judged to be change

curl 'https://sochain.com/api/v3/transaction/BTC/0000000000000000000000000000000000000000000000000000000000000000' \
  -H 'API-KEY: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "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

  • Passive: the target is not contacted

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

Path parameters

networkstringrequired

Network code

Example: BTCOne of: BTC, LTC, DOGE, ZEC, BTCTEST, LTCTEST, DOGETEST, ZECTEST
Response fields · 5Show

block_countinteger

Number of blocks

best_block_hashstring

Hash of the newest block

hashratestring

Network hash rate

mempool_txsinteger

Transactions in the mempool

median_fee_ratenumber

Median fee rate of a projected block

curl 'https://sochain.com/api/v3/network_info/BTC' \
  -H 'API-KEY: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "status": "success",
  "data": {
    "block_count": 800000,
    "best_block_hash": "0000000000000000000000000000000000000000000000000000000000000000",
    "mempool": {
      "mempool_txs": 1500,
      "blocks": [
        {
          "block_num": 1,
          "median_fee_rate": 12.5
        }
      ]
    }
  }
}
  • Passive: the target is not contacted

Test networks are priced at 0.

Path parameters

networkstringrequired

Network code

Example: BTCOne of: BTC, LTC, DOGE, ZEC, BTCTEST, LTCTEST, DOGETEST, ZECTEST
Response fields · 3Show

valuestring

Price

currencystring

Currency, for example USD

as_ofstring

Time of the price

curl 'https://sochain.com/api/v3/price/BTC' \
  -H 'API-KEY: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "status": "success",
  "data": {
    "value": "50000.00",
    "currency": "USD",
    "as_of": "2026-01-01T12:00:00Z"
  }
}