Guides2 min read

Bitcoin balances & transactions via API — no node required

Read Bitcoin balances and transaction history over plain REST — no Bitcoin Core node and no UTXO bookkeeping required.

cryptoapi team
Guides · Bitcoin
On this page

Running a Bitcoin Core node just to check a balance is a lot of disk, sync time, and ongoing ops for a read you could make in one HTTP call. With CryptoAPI you talk to Bitcoin through the exact same request shape you already use for EVM chains — set network to "bitcoin" and you are done. No UTXO accounting, no node to babysit.

Same shape, different chain

Every wallet and blockchain endpoint takes a network field. Switching from Ethereum to Bitcoin is a one-word change:

  • POST /api/wallet/balance — read the native BTC balance.
  • GET /api/blockchain/transactions — query indexed history with filters.
  • GET /api/blockchain/transaction — fetch one transaction by hash.

Bitcoin has no smart-contract tokens here, so there is no tokens array to manage — balance returns native BTC only, with 8 decimals. That is the whole UTXO story you have to think about: none. On EVM chains the same balance call can also return token rows; on Bitcoin it is simply BTC.

Every /api/* call needs auth. Pass your dashboard API key as a key header, or an Authorization: Bearer JWT.

Read a Bitcoin balance

One POST gets you the balance plus its fiat value — usdValue is already computed, so you do not need a separate price lookup.

bash
curl -X POST https://api.cryptoapi.so/api/wallet/balance \
  -H "key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "network": "bitcoin",
    "address": "bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq"
  }'
json
{
  "name": "Bitcoin",
  "symbol": "BTC",
  "balance": "0.04217500",
  "decimals": 8,
  "isToken": false,
  "usdValue": 2841.93
}

Validate addresses before you use them

Bitcoin addresses come in several formats — bech32 (bc1...) and legacy (1... / 3...). Check the address with your Bitcoin wallet software for the selected network before storing or sending.

json
{ "valid": true }

Transaction history and lookups

For a single transaction, pass its hash:

bash
curl "https://api.cryptoapi.so/api/blockchain/transaction?network=bitcoin&transactionId=THE_TX_HASH" \
  -H "key: YOUR_API_KEY"

For history, GET /api/blockchain/transactions requires network and accepts filters like address, minValueDecimal, startDate, sortOrder, limit (up to 1000), and offset. This reads from an indexed store that covers up to 30 days of live indexed data — for anything older, use the single-transaction lookup by hash, which depends on the configured provider’s history coverage.

There are no webhooks or streaming sockets. To watch an address for new activity, poll GET /api/blockchain/transactions on an interval and diff against what you have already seen.

Ship it

Grab an API key from your dashboard, point your existing balance code at network: "bitcoin", and skip the node entirely. Full reference is at https://api.cryptoapi.so/api/doc.

Read it, then ship it

Copy the code above and run it today.

Every snippet in this guide works on the free plan. Grab a key and make your first call in a minute.