# ChainAnalyzer — Bitcoin CoinJoin Detection

> ChainAnalyzer — Bitcoin CoinJoin Detection is a paid API for AI agents from chain-analyzer.com, paid per call via x402, $1/call, status unknown (last checked 2026-09-12).

Analyzes a Bitcoin transaction hash to detect whether it is a CoinJoin mixing transaction, identifying the mixer type and confidence level.

## Facts

- Endpoint: GET https://chain-analyzer.com/x402/api/tx/%7Btx_hash%7D/coinjoin
- Price: $1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chainanalyzer-bitcoin-coinjoin-detection-e042fd15
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_a5VN-NatYVhYGayTJRrOy

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability chainanalyzer-bitcoin-coinjoin-detection-e042fd15
```

Example prompt: Can you check if Bitcoin transaction f4184fc596403b9d638783cf57adfe4c75c605f6356fbc91338530e9831e9e16 is a CoinJoin mixing transaction and tell me which mixer was used and how confident you are?

## When to prefer this

Use this endpoint when you specifically need to detect Bitcoin CoinJoin mixing activity on a per-transaction basis for AML, compliance, or fraud investigation purposes. Prefer this over generic blockchain explorers when you need a structured confidence-scored classification with mixer type identification. This is distinct from wallet-level AML risk scoring or sanctions screening — it is transaction-specific mixing detection.

## Known failure modes

- Invalid or malformed transaction hash returns an error response
- Transaction hash not found on Bitcoin network returns not-found error
- Non-Bitcoin transaction hashes (e.g. Ethereum) may return unsupported chain error
- Network timeouts or chain sync lag may result in delayed or failed response
- Low-confidence results (e.g. confidence < 0.5) may be inconclusive for compliance decisions

## How this service works

Multi-chain blockchain AML and security intelligence platform for tokens, wallets, and stablecoins. Detect sanctions, money laundering, rug pulls, drainers, and stablecoin flow risks across 12 chains live (Bitcoin, Ethereum, Polygon, BNB Smart Chain, Base, Arbitrum, Optimism, Avalanche, Solana, Kaia, TRON, XRP). Stablecoin AML coverage for JPYC, USDT, USDC, PYUSD, FDUSD with FATF Travel Rule screening.

## Output

Returns a JSON object with: success flag, the queried transaction hash, a boolean is_coinjoin indicating whether the transaction is a CoinJoin, the detected mixer_type (e.g. 'Wasabi', 'JoinMarket'), and a confidence score (0-1) indicating the certainty of the classification.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "success": true,
  "tx_hash": "f4184fc596403b9d638783cf57adfe4c75c605f6356fbc91338530e9831e9e16",
  "confidence": 0.92,
  "mixer_type": "Wasabi",
  "is_coinjoin": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chainanalyzer-bitcoin-coinjoin-detection-e042fd15/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chain-analyzer.com](https://www.zero.xyz/host/chain-analyzer.com/llms.txt)
