canonical: https://jentic.com/apis/sochain.com/sochain

# SoChain API

The SoChain API reads blockchain data for Bitcoin, Litecoin, Dogecoin, and the transparent side of Zcash, plus their testnets. It returns address balances, summaries, paged transaction history, unspent outputs, transactions and their status, blocks, network and mempool state, current and historical prices, and chart series. With a key you can group addresses into buckets, including filling one from a wallet's xpub, and register webhooks that fire on address activity or transaction confirmations. Amounts come back as exact 8-decimal strings and times as Unix seconds.

## For AI agents

Look up BTC, LTC, DOGE, and ZEC address balances, transactions, unspent outputs, blocks, and prices, track wallets as buckets, and set webhooks on address or transaction events.

## Scope

Does not handle sending or broadcasting transactions, custody, exchange trading, or Ethereum and other account-based chains. Use for reading BTC, LTC, DOGE, and ZEC blockchain data and watching addresses only.

## Capabilities

- Get an address's balance now or at a past height or time, and its sent, received, and balance summary
- Page through an address's transactions with filters such as from_height, to_height, direction, and unconfirmed
- Check whether a transaction is pending, mined, replaced, or dropped, and read the full transaction by hash
- List an address's unspent outputs, or the coins a whole bucket can spend
- Build a bucket from a wallet's xpub or a list of addresses and read its total balance and merged history
- Create webhooks that watch addresses or transactions, with a notify_at confirmation setting and recent delivery logs
- Read the latest or historical price per network in a chosen currency, and chart series such as tx_count, fees_median, and hashrate

## Use cases

### Wallet questions answered by an agent

A user asks their AI agent how much BTC sits in an address and what came in last week. Through Jentic the agent finds the SoChain lookups by intent, calls the balance operation and then the transaction history with a from_time filter, and reports amounts as the exact 8-decimal strings SoChain returns. Lookups also work without a key, within the keyless daily allowance.

Example prompt: Call GET `/balance/{network}/{address}` with network 'BTC' and the address, then GET `/transactions/{network}/{address}` with from_time set to seven days ago, and summarise incoming amounts

### Payment confirmation tracking

A small merchant accepting Litecoin wants to know when a customer payment is final. A webhook of type address.transaction watches the receiving address or a specific transaction and calls the merchant's URL once the notify_at setting is reached. Each delivery carries a SoChain-Signature header to verify before trusting the payload.

Example prompt: Call POST /webhooks with type 'address.transaction', network 'LTC', url 'https://example.com/hooks/ltc', and addresses holding the receiving address, then GET `/webhooks/{id}/deliveries` to confirm events arrive

### Whole-wallet monitoring with buckets

An HD wallet spreads funds across many addresses. Creating a bucket and filling it from the wallet's xpub gathers its addresses in one place, after which the bucket balance, summary, merged transaction history, and spendable unspent outputs each come back from a single call instead of one per address.

Example prompt: Call POST /buckets with name 'savings' and network 'BTC', then POST `/buckets/{bucket}/xpub` with the wallet's xpub, then GET `/buckets/{bucket}/balance`

### Address safety checks

Before sending funds, a cautious user wants to know whether the destination address is valid and whether their own address has been targeted by address poisoning, where look-alike addresses send dust to plant themselves in history. SoChain exposes an address validity check, an address poisoning check, and the recent counterparties of an address.

Example prompt: Call GET `/is_valid_address/{network}/{address}` for the destination, then GET `/address_poisoning/{network}/{address}` for the sender's own address, and report both results

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| GET | `/balance/{network}/{address}` | Get the balance of an address |
| GET | `/transactions/{network}/{address}` | Get an address's transactions |
| GET | `/transaction_status/{network}/{hash}` | Check a transaction's status |
| GET | `/unspent_outputs/{network}/{address}` | List unspent outputs of an address |
| GET | `/price/{network}` | Get the latest price |
| POST | `/buckets/{bucket}/xpub` | Add a wallet's addresses from its xpub |
| POST | `/webhooks` | Create a webhook |
| GET | `/address_poisoning/{network}/{address}` | Check an address for address poisoning |

## Key resources

- **Addresses** — Balance, summary, transactions, counts, unspent outputs, balance history, rank, poisoning check, and counterparties
- **Transactions and blocks** — Single transactions, transaction status, blocks by hash or height, latest blocks, and best block hash
- **Network and prices** — Network and mempool state, current and historical prices, chart series, and rich list
- **Buckets** — Named address groups filled from an xpub or address list, with balance, summary, history, and unspent outputs
- **Webhooks** — Address and transaction watches with delivery logs, verification, and bulk address changes

## AI readiness

This API is usable in Jentic One now. Its AI-readiness score against Jentic's framework shows where it stands today and where improvements would make it even easier for agents to use.

- **Score:** 61 / 100
- **Maturity:** AI-Aware
- **Dimensions:**
  - Foundational Compliance: 82 / 100
  - Developer Experience & Jentic Compatibility: 69 / 100
  - AI-Readiness & Agent Experience: 54 / 100
  - Agent Usability: 94 / 100
  - Security: 33 / 100
  - AI Discoverability: 68 / 100
- **View full report:** https://jentic.com/apis/sochain.com/sochain/scorecard
- **How the score is calculated:** https://docs.jentic.com/reference/api-readiness-framework/overview/
- **More about the dimensions:** https://docs.jentic.com/reference/api-readiness-framework/specification/#dimensional-model-overview

### Score it yourself

Every API in the directory is allowlisted, so you can re-score it with no key required.

- **Score your own API:** https://jentic.com/scorecard.md
- **Scoring CLI agent skill:** https://github.com/jentic/jentic-api-scorecard/blob/main/skills/jentic-api-scorecard/SKILL.md

```sh
npx @jentic/api-scorecard-cli score <openapi-url>
```

## Why Jentic

- **Setup:** Wiring the SoChain API by hand means choosing between the API-KEY header and the api_key query parameter, knowing which endpoints need a key, reading the X-RateLimit headers, and verifying SoChain-Signature on webhooks. Through Jentic you install once, import SoChain from the API Directory, store the key once, and your agent calls it.
- **Permission scoping:** SoChain puts the network and address in the URL path (`/balance/{network}/{address}`), and the bucket name in bucket paths, so a rule can pin your agent to one address on one network or to one bucket. You choose the operations it may call, so destructive ones like bucket deletion or webhook removal are not included unless you add them.
- **Credential handling:** Your SoChain key is stored once, encrypted, by your own Jentic One instance and injected at execution time. It never enters the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'check a bitcoin address balance' or 'has my transaction confirmed', and Jentic returns the matching SoChain operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

## Related APIs

- **mempool.space REST API** — Bitcoin blocks, transactions, addresses, mempool, and fee estimates
- **Blockchain Data API** — Bitcoin blocks, transactions, addresses, and exchange rates from Blockchain.com
- **CoinGecko API** — Crypto prices and market data across thousands of assets

## FAQ

### What authentication does the SoChain API use?

Per its OpenAPI spec, the SoChain API takes an API key in the `API-KEY` header, or as an `api_key` query parameter for GET lookups from tools that cannot send headers. Address, transaction, block, and price lookups need no key and work on the keyless allowance, while buckets, webhooks, account_info, and support always need one. Through Jentic the key is stored encrypted by your own Jentic One instance and injected at call time.

### Which blockchains does the SoChain API cover?

The network path parameter accepts BTC, LTC, DOGE, and ZEC, plus the testnets BTCTEST, LTCTEST, DOGETEST, and ZECTEST. On Zcash only the transparent side is covered. Prices are always 0 on testnets.

### What are the rate limits for the SoChain API?

The API description in the spec states that without a key, lookups are limited to 2,500 per UTC day per IP. With a key, monthly request quotas run from 75,000 on the Free plan to 150,000,000 on Behemoth. Responses carry X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset headers.

### How do I check a Bitcoin address balance through Jentic?

Install Jentic One with `curl -fsSL https://raw.githubusercontent.com/jentic/jentic-one/main/tools/install.sh | sh` and import the SoChain API from the directory, adding your key if you have one. Your agent searches for 'get a bitcoin address balance' and calls GET `/balance/{network}/{address}` with network BTC. To run it on your own infrastructure, install Jentic One from its GitHub repo.

### Is there a SoChain MCP server?

Yes - the SoChain spec says the same data is available to AI agents over MCP with the same key and limits. You can also connect the SoChain API directly through Jentic: your agent gets the full 50-endpoint surface from the spec without loading another server's tool definitions into its context, your key is injected at call time by your self-hosted instance instead of living in an MCP config, and your rules decide which operations the agent may call.

### Can I limit what my agent is allowed to do with the SoChain API?

Yes. For example, write a rule that allows only GET `/balance/BTC/{address}` and GET `/transactions/BTC/{address}` for your own address, so the agent can read that wallet's balance and history but cannot create or delete webhooks or buckets, and every call it makes is logged.

### How do I verify SoChain webhook deliveries?

Each delivery carries a SoChain-Signature header that you should verify before trusting the payload, and your endpoint must reply with any 2xx within 30 seconds or the delivery is retried. GET `/webhooks/{id}/deliveries` lists recent deliveries and POST `/webhooks/{id}/verify` checks the endpoint again.
