---
name: cactonus
description: Check crypto wallets with Cactonus. Run a risk check on USDT and USDC deposit addresses, explore a wallet's transfers and counterparties, trace where its money went, find connections between wallets and look up who an address belongs to.
---

# Cactonus

Cactonus is a wallet-risk service for OTC brokers. It indexes USDT and USDC transfers on Ethereum, Tron, BNB Chain and Arbitrum and checks addresses against Cactonus's risk list, OFAC sanctions, issuer freezes and known labels.

## Connect

- Base URL: `https://api.cactonus.io`
- Every request sends `Authorization: Bearer <key>`. The key starts with `ck_` and acts as the user, with their access.
- The key is in `CACTUS_API_KEY`. If it is not set, ask the user for a Cactonus API key: they create one in Settings → API keys (https://cactonus.io/settings#api-keys), where it is shown once. Keep it in `CACTUS_API_KEY` (for example `export CACTUS_API_KEY=…`).
- Keep the key secret: use it only in that header, and never repeat it in answers, files or logs.
- Full reference: https://cactonus.io/openapi.json (OpenAPI 3.1), readable at https://cactonus.io/docs/api.

```sh
export CACTUS_API=https://api.cactonus.io
curl -s "$CACTUS_API/v1/me" \
  -H "Authorization: Bearer $CACTUS_API_KEY"
```

## MCP (preferred)

If you can use MCP servers, connect to Cactonus over MCP (Streamable HTTP) rather than calling the REST API:

- URL: `https://api.cactonus.io/v1/mcp`, with the same `Authorization: Bearer <key>` header.
- Claude Code: `claude mcp add --transport http cactonus https://api.cactonus.io/v1/mcp --header "Authorization: Bearer $CACTUS_API_KEY"`. Codex and Cursor take the same URL and header.
- claude.ai and ChatGPT: Settings → Connectors → Add custom connector → paste `https://api.cactonus.io/v1/mcp` → sign in to Cactonus and allow. No key needed. ChatGPT needs a Business or Enterprise workspace.
- Every tool is read-only except `risk_check`, which saves a check.

| Tool | Does | Costs credits |
| --- | --- | --- |
| `risk_check` | Runs a risk check and saves it for the firm | Yes |
| `get_check` | Reads a saved check | No |
| `list_checks` | Lists saved checks | No |
| `explore_wallet` | A wallet's totals and counterparties | Yes |
| `wallet_transactions` | A wallet's transfers | No |
| `connections` | A wallet's direct counterparties | First page |
| `trace` | Where a wallet's money went or came from, one hop at a time | First page |
| `lookup_labels` | Who addresses belong to, and risk flags | No |
| `linked_wallets` | Wallets likely run by one owner, with evidence | Unless cached |

Without MCP, use the REST API below.

## Rules

- Chains are CAIP-2 IDs: `eip155:1` Ethereum, `tron:728126428` Tron. `GET /v1/tokens` lists every indexed chain and token.
- Errors are JSON `{"code": "...", "message": "..."}`. On 429 or a busy 503, wait (`Retry-After` seconds, else 1 s doubling up to 30 s) and retry. Send requests one at a time.
- Lists return a cursor such as `next_after`; send it back as `after` for the next page. `null` means the last page.
- Amounts are raw token units; USDT and USDC have 6 decimals.
- Report what the API returned: verdicts, labels and transaction hashes as evidence. Do not guess.
- Ask the user before changing anything other than running a risk check, such as deleting checks or changing alert watches, rules or destinations.

## Run a risk check

Checks 1–10 EVM (`0x…`) or Tron (`T…`) addresses against Cactonus's risk list (scams and mixers), OFAC sanctions and issuer freezes, up to `hops` (1–3) transfers away. A freeze counts on the address itself only. The check is saved for the whole firm.

```sh
curl -s -X POST "$CACTUS_API/v1/checks" \
  -H "Authorization: Bearer $CACTUS_API_KEY" \
  -H "Content-Type: application/json" -d '{"addresses": ["0x…"], "hops": 1}'
```

`verdict` is `clear`, `inconclusive`, `review` or `blocked`, per address and overall (the most severe). Each network's `status` says whether the check completed: `still_indexing`, `still_catching_up` or `failed` leaves it `inconclusive` unless something was found, is not charged, and `message` says when to run it again; `covered_to` is how recent the transfers it read are. `GET /v1/checks/{id}` reads a check again; `GET /v1/checks` lists them.

## Explore a wallet

Open a snapshot first; later wallet reads take its `snapshot` ID so they share one time window.

```sh
curl -s "$CACTUS_API/v1/wallets/snapshot?chain=eip155:1&address=0x…" \
  -H "Authorization: Bearer $CACTUS_API_KEY"
curl -s "$CACTUS_API/v1/wallets/connections?snapshot=<snapshot>&sort_by=total_amount&sort_order=desc" \
  -H "Authorization: Bearer $CACTUS_API_KEY"
curl -s "$CACTUS_API/v1/wallets/transactions?snapshot=<snapshot>&limit=50" \
  -H "Authorization: Bearer $CACTUS_API_KEY"
```

- `GET /v1/wallets/summary` and `GET /v1/wallets/stats`: totals in and out.
- `POST /v1/wallets/balances` with `{"chain", "wallets", "token_ids"}`: live balances.
- `GET /v1/senders?chain=…&address=…`: who sent funds to a wallet.

## Connections

```sh
curl -s "$CACTUS_API/v1/connections?chain=eip155:1&address=0x…" \
  -H "Authorization: Bearer $CACTUS_API_KEY"
curl -s -X POST "$CACTUS_API/v1/connections/group" \
  -H "Authorization: Bearer $CACTUS_API_KEY" \
  -H "Content-Type: application/json" -d '{"chain": "eip155:1", "wallets": ["0x…", "0x…"]}'
```

- `GET /v1/connections`: a wallet's direct counterparties.
- `POST /v1/connections/group`: direct transfers within 2–50 wallets.
- `POST /v1/connections/blacklist`: the same wallets compared with the risk list and sanctions.
- `POST /v1/connections/linked`: which of 2–50 wallets are probably run by the same person, with the evidence (uses credits; the same search within 24 hours is free).
- `GET /v1/connections/transactions?chain=…&address_a=…&address_b=…`: the transfers between two wallets.

## Trace

Where money went (`"direction": "out"`) or came from (`"in"`), one hop at a time: each wallet's biggest counterparties, ranked per token, with exact amounts per token (never added across tokens). Expand a counterparty by sending it as the next request's address. Stop at wallets with a `terminal` (an exchange, deposit address or contract).

```sh
curl -s -X POST "$CACTUS_API/v1/trace/expand" \
  -H "Authorization: Bearer $CACTUS_API_KEY" \
  -H "Content-Type: application/json" -d '{"chain": "eip155:1", "addresses": ["0x…"], "direction": "out"}'
```

- 1–10 addresses; `limit` 1–50 (20). Each wallet expanded uses credits; `next_after` sent back as `after` (with that one address) is free.
- `expanded: false` means the wallet was not read in time: expand it again. `snapshot` opens an edge's transfers with `GET /v1/connections/transactions?snapshot=…`.

## Labels

```sh
curl -s -X POST "$CACTUS_API/v1/labels/resolve" \
  -H "Authorization: Bearer $CACTUS_API_KEY" \
  -H "Content-Type: application/json" -d '{"chain": "eip155:1", "addresses": ["0x…"]}'
```

Answers each address's label (whose wallet it is: one per address, the same for every firm), risk flags such as OFAC sanctions, and for a contract what its code is and who runs it.

## Risk list

Cactonus keeps the risk list; firms do not edit it. To report a suspect address, tell Cactonus.
