# Bitcoin Transaction AML Check

> Bitcoin Transaction AML Check is a paid API for AI agents from diamond.btc-intel.workers.dev, paid per call via x402, $0.05/call, status unknown (last checked 2026-11-21).

Performs anti-money-laundering (AML) risk analysis on a Bitcoin transaction, returning a risk score, verdict, and detected laundering-pattern indicators.

## Facts

- Endpoint: GET https://diamond.btc-intel.workers.dev/api/x402/tx_aml?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bitcoin-transaction-aml-check-caade932
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CD5Nh75b2I_sWDZp8kJAO

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 bitcoin-transaction-aml-check-caade932
```

Example prompt: Can you run an AML check on this Bitcoin transaction — a1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d — and tell me the risk score, verdict, and any laundering patterns detected?

## When to prefer this

Use this endpoint when you need per-transaction AML risk analysis on Bitcoin — specifically when you need laundering-pattern indicators (peel chains, rapid layering) and a numeric risk score for a specific txid. Prefer this over address-level checks when you have a transaction ID and need transaction-scoped verdicts. It is pay-per-call with no account required, making it ideal for on-demand compliance checks without subscription overhead.

## Known failure modes

- Invalid or malformed txid (not 64 hex characters) returns a validation error
- Transaction not found in the node's dataset returns found=false with no AML case
- Payment not received or insufficient USDC/Lightning payment returns 402 Payment Required
- Rate limiting or node unavailability returns 5xx error
- Very recent unconfirmed transactions may not yet have AML data

## How this service works

AML check for one Bitcoin transaction: the laundering-pattern case this node logged for it in the last 30 days (score, level, rules fired such as peel chains, post-mix consolidation, structuring), or a clear no-case answer. Heuristic, not proof.

## Output

Returns a JSON object with the queried txid, the timestamp of the check, an overall AML verdict string, and an aml_case object containing a 'found' boolean, a risk level label (e.g. 'flagged (40-69)'), a numeric score (0-100), and an array of specific laundering-pattern indicators such as 'aml_peel_chain' or 'aml_rapid_layering'.

## Request schema (JSON Schema)

```json
{
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "txid"
     ],
     "properties": {
      "txid": {
       "type": "string",
       "maxLength": 64,
       "description": "Transaction id (64 hex characters)"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "txid": "a1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d",
  "as_of": "2026-11-07T18:00:00Z",
  "product": "transaction_aml_check",
  "verdict": "This node logged a laundering-pattern case for this transaction (score 55, flagged (40-69)).",
  "aml_case": {
   "found": true,
   "level": "flagged (40-69)",
   "score": 55,
   "indicators": [
    "aml_peel_chain",
    "aml_rapid_layering"
   ]
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bitcoin-transaction-aml-check-caade932/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from diamond.btc-intel.workers.dev](https://www.zero.xyz/host/diamond.btc-intel.workers.dev/llms.txt)
