chain-insights 0.57.3 → 0.57.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -8
- package/docs/graph-query-compatibility.md +1 -1
- package/docs/graph-tools.md +17 -11
- package/docs/mcp-proxy.md +18 -14
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,8 +17,8 @@ Chain Insights is open-source AML and forensics infrastructure for AI agents
|
|
|
17
17
|
and analysts: a hosted Chain Insights Graph you reach over MCP, screened
|
|
18
18
|
through one CLI. It screens blockchain addresses for risk, explores fund flows
|
|
19
19
|
through read-only graph queries, and returns structured investigation facts.
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
The hosted graph has a free tier — 5,000 units a day per address,
|
|
21
|
+
no key and no payment setup — so you can run a first screen in minutes.
|
|
22
22
|
|
|
23
23
|
## Quickstart
|
|
24
24
|
|
|
@@ -119,7 +119,7 @@ Never touches:
|
|
|
119
119
|
| `graph_query_batch` | Run related read-only graph queries as one MCP call |
|
|
120
120
|
| `meta_network_capabilities` | Check supported Chain Insights networks and graph tools |
|
|
121
121
|
| `meta_schema` | Read the live graph schema of a network: labels, link types, fields, indexes |
|
|
122
|
-
| `meta_usage_status` | Check the caller's daily free-
|
|
122
|
+
| `meta_usage_status` | Check the caller's daily free-demo graph query allowance |
|
|
123
123
|
| `meta_help` | Show Chain Insights tool and workflow guidance |
|
|
124
124
|
| `wallet_balance` | Show the local payment wallet amount |
|
|
125
125
|
| `wallet_topup` | Show the local payment wallet address and its QR code for a USDC top-up on Base |
|
|
@@ -203,6 +203,12 @@ Chain Insights Graph bills by **billable units**.
|
|
|
203
203
|
- Bigger responses cost more. Narrow queries cost less.
|
|
204
204
|
- The server reports `billable_units` on every graph response.
|
|
205
205
|
|
|
206
|
+
| Door | Price | Limits |
|
|
207
|
+
| --- | --- | --- |
|
|
208
|
+
| Free tier | Free | 5,000 units a day per address, 30 requests a minute, resets at midnight UTC |
|
|
209
|
+
| Pay as you go (USDC per call, and the ACP offering) | One cent per 100 units, rounded up to the next cent, one cent minimum per call. A batch is one call. | No daily limit, no rate limit for paying agents |
|
|
210
|
+
| Subscription in $CIA (not yet live) | Paid in $CIA | 100,000 units a day, 60 requests a minute |
|
|
211
|
+
|
|
206
212
|
**Check your own count.** `src/lib/recount-units.ts` mirrors the server's
|
|
207
213
|
counting logic. Use it client-side to recount units in a response and
|
|
208
214
|
confirm the billed amount matches what you received.
|
|
@@ -334,11 +340,12 @@ a prepared wallet. For paid access, run `cia wallet ready` — it checks
|
|
|
334
340
|
funding and finishes one-time payment setup. Setup commands live in
|
|
335
341
|
[MCP proxy](docs/mcp-proxy.md).
|
|
336
342
|
|
|
337
|
-
The hosted graph includes a
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
343
|
+
The hosted graph includes a free tier for `graph_query` and
|
|
344
|
+
`graph_query_batch`: 5,000 units a day per address (an IP address block),
|
|
345
|
+
no key, 30 requests a minute, reset at midnight UTC. Schema reads
|
|
346
|
+
(`meta_schema`) cost nothing on every door. Use `meta_usage_status` to see
|
|
347
|
+
the current caller allowance. Prepared wallet users receive the free tier
|
|
348
|
+
first, then paid access continues automatically.
|
|
342
349
|
|
|
343
350
|
## Test
|
|
344
351
|
|
|
@@ -174,7 +174,7 @@ acting.
|
|
|
174
174
|
The whole-graph high-fan-in sweep — every operator grouped by distinct owner
|
|
175
175
|
count — is a valid shape but a heavy one: at millions of edges it can exceed
|
|
176
176
|
the per-query limit (60 seconds by default), and a sweep that times out can
|
|
177
|
-
still
|
|
177
|
+
still return a large metered result. A `network` filter does not narrow it. Bound
|
|
178
178
|
it by a recent `last_seen_timestamp` window — recompute the cutoff rather than
|
|
179
179
|
copying a literal, for example now minus 7 days in Unix milliseconds — and
|
|
180
180
|
prefer the point-anchored probe on metered endpoints:
|
package/docs/graph-tools.md
CHANGED
|
@@ -340,18 +340,25 @@ and `:Sanctioned`. Each role also has a flag on the node.
|
|
|
340
340
|
`kind` is a column and a filter. Add `t.kind = "internal"` to the pair and the
|
|
341
341
|
day to read only the internal rows.
|
|
342
342
|
- Use `meta_usage_status` through Chain Insights before public hosted reads
|
|
343
|
-
when you need the caller's remaining free-
|
|
344
|
-
- Hosted endpoints
|
|
345
|
-
|
|
343
|
+
when you need the caller's remaining free-demo allowance.
|
|
344
|
+
- Hosted endpoints expose a free tier for graph_query and graph_query_batch:
|
|
345
|
+
5,000 units a day per address (an IP address block), 30 requests a minute,
|
|
346
|
+
reset at midnight UTC. A unit is one returned row, node, edge or list
|
|
347
|
+
element. Schema reads (`meta_schema`) cost nothing on every door.
|
|
348
|
+
- Pay as you go on x402 (and the ACP offering) costs one cent per 100 units,
|
|
349
|
+
rounded up to the next cent, one cent minimum per call. A batch is one call.
|
|
350
|
+
There is no daily limit and no rate limit for paying agents.
|
|
351
|
+
- A subscription in $CIA (not yet live) gives 100,000 units a day at 60
|
|
352
|
+
requests a minute.
|
|
346
353
|
- Prepared wallet users receive the daily free tier first; after it is used,
|
|
347
354
|
x402 payment continues automatically from the configured wallet.
|
|
348
355
|
- Use explicit LIMIT and pagination in your query when you want bounded result
|
|
349
356
|
sets.
|
|
350
357
|
- Chain Insights Graph does not append `LIMIT`; Chain Insights recipes own their
|
|
351
358
|
own limits and pagination.
|
|
352
|
-
- Use
|
|
353
|
-
`graph_query_batch`
|
|
354
|
-
|
|
359
|
+
- Use bounded `graph_query` calls for public no-wallet free-demo usage.
|
|
360
|
+
`graph_query_batch` is also included in the free tier; use it for related
|
|
361
|
+
reads that should share one call.
|
|
355
362
|
- `per_query_timeout_seconds` is optional and capped at `60` by default (`30` for
|
|
356
363
|
`USE facts`). It can lower a limit. It cannot raise one.
|
|
357
364
|
- Returned rows live in `structuredContent.facts`.
|
|
@@ -398,9 +405,9 @@ cia mcp call graph_query_batch \
|
|
|
398
405
|
'queries=[{"id":"count","query":"USE topology MATCH (a:Address) RETURN count(a) AS count LIMIT 1"},{"id":"flows","query":"USE topology MATCH (src:Address)-[f:FLOWS_TO]->(dst:Address) RETURN src.address AS source, dst.address AS target, f.amount_usd_sum AS amount_usd_sum, f.tx_count AS tx_count LIMIT 3"},{"id":"linked","query":"USE topology MATCH (a:Address)-[l:LINKED]-(b:Address) RETURN a.address AS address, b.address AS linked_address, l.basis AS basis, l.confidence AS confidence LIMIT 3"}]'
|
|
399
406
|
```
|
|
400
407
|
|
|
401
|
-
|
|
402
|
-
public hosted endpoints,
|
|
403
|
-
free-
|
|
408
|
+
A batch is one call and counts the units of all its returned rows. The free
|
|
409
|
+
demo includes batches. On public hosted endpoints, a batch that would pass
|
|
410
|
+
the remaining free-demo allowance can ask for paid x402 access.
|
|
404
411
|
|
|
405
412
|
Batch result facts include:
|
|
406
413
|
|
|
@@ -413,8 +420,7 @@ Batch result facts include:
|
|
|
413
420
|
"live_tier_timeout_seconds": 60,
|
|
414
421
|
"starrocks_tier_timeout_seconds": 30,
|
|
415
422
|
"total_query_elapsed_ms": 1345,
|
|
416
|
-
"
|
|
417
|
-
"estimated_usdc": "0.02"
|
|
423
|
+
"billable_units": 12
|
|
418
424
|
}
|
|
419
425
|
}
|
|
420
426
|
```
|
package/docs/mcp-proxy.md
CHANGED
|
@@ -81,7 +81,7 @@ The proxy:
|
|
|
81
81
|
| --------------------------- | ------------------------------------------------------------------------------------ |
|
|
82
82
|
| `meta_network_capabilities` | Show the current Chain Insights network/tool support matrix |
|
|
83
83
|
| `meta_schema` | Show the live graph schema of a network: labels, link types, fields, indexes |
|
|
84
|
-
| `meta_usage_status` | Check the caller's daily free-
|
|
84
|
+
| `meta_usage_status` | Check the caller's daily free-demo graph query allowance |
|
|
85
85
|
| `meta_help` | Show Chain Insights tool and workflow guidance |
|
|
86
86
|
| `wallet_balance` | Show the local payment wallet address, payment network, token, and amount |
|
|
87
87
|
| `wallet_topup` | Show the local payment wallet address and its QR code, with a Claude view |
|
|
@@ -198,7 +198,7 @@ cia access-key set ci_test_REDACTED --endpoint https://mcp.chain-insights.ai/
|
|
|
198
198
|
cia access-key status
|
|
199
199
|
```
|
|
200
200
|
|
|
201
|
-
Daily free-
|
|
201
|
+
Daily free-demo graph usage:
|
|
202
202
|
|
|
203
203
|
```bash
|
|
204
204
|
cia mcp call meta_usage_status
|
|
@@ -207,17 +207,21 @@ cia mcp call graph_query \
|
|
|
207
207
|
"query=USE topology MATCH (n) RETURN count(n) AS count LIMIT 1"
|
|
208
208
|
```
|
|
209
209
|
|
|
210
|
-
Hosted Chain Insights Graph can allow anonymous `graph_query`
|
|
211
|
-
setup. The
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
210
|
+
Hosted Chain Insights Graph can allow anonymous `graph_query` and
|
|
211
|
+
`graph_query_batch` calls before wallet setup. The free tier is 5,000 units a
|
|
212
|
+
day per address (an IP address block), at 30 requests a minute, reset at
|
|
213
|
+
midnight UTC. A unit is one returned row, node, edge or list element.
|
|
214
|
+
Schema reads (`meta_schema`) cost nothing on every door.
|
|
215
|
+
`meta_usage_status` returns only the current caller's allowance status.
|
|
216
|
+
Wallet users receive the same free tier first; after it is exhausted, x402
|
|
217
|
+
payment continues automatically when `wallet ready` reports ready.
|
|
218
|
+
|
|
219
|
+
The free tier includes `graph_query_batch`. Pay as you go on x402 (and the ACP
|
|
220
|
+
offering) costs one cent per 100 units, rounded up to the next cent, with one
|
|
221
|
+
cent minimum per call; a batch is one call. It has no daily limit and no rate
|
|
222
|
+
limit for paying agents. A subscription in $CIA (not yet live) gives 100,000
|
|
223
|
+
units a day at 60 requests a minute. Use explicit LIMIT and pagination in your
|
|
224
|
+
query when you want bounded result sets.
|
|
221
225
|
|
|
222
226
|
### CLI Output And Tool Versions
|
|
223
227
|
|
|
@@ -234,7 +238,7 @@ cia mcp call --json graph_query \
|
|
|
234
238
|
"query=USE topology MATCH (a:Address) RETURN a.address AS address LIMIT 10"
|
|
235
239
|
```
|
|
236
240
|
|
|
237
|
-
UAT on 2026-05-31 showed the
|
|
241
|
+
UAT on 2026-05-31 showed the earlier free tier was enough for exact
|
|
238
242
|
address checks, sample address reads, sample flow reads, and the
|
|
239
243
|
free-to-paid handoff, but bounded sample reads still returned topology data
|
|
240
244
|
inside the same daily allowance.
|
package/package.json
CHANGED