Cost-aware data strategy
The economics of the Nansen API, and how the pipeline is shaped around them.
The premise
Onviction Agent is designed around the economics of the Nansen API. Credit costs vary significantly across endpoints, so the investigation pipeline is deliberately structured to spend credits where they provide the most research value.
This is part of the product architecture rather than an implementation detail. The goal is to maximise evidential value per API credit, and that objective shapes which endpoints exist in the research path at all.
Cost across the surface
Credit cost by endpoint
Read from the endpoint registry the client enforces at runtime.
The spread exceeds 500×. A naive implementation reaches for the richest-sounding endpoint and discovers it has spent 750 credits on a single call. The registry makes cost a property of the endpoint that the client consults before every request, rather than something a developer is expected to remember.
Tiered request strategy
- Low-cost endpoints run as the default investigation layer.
- Mid-cost endpoints are invoked when the initial evidence is inconclusive.
- High-cost endpoints require explicit conditions before they are used.
- Blocked or non-redistributable endpoints are excluded from the public research path entirely.
| Tier | Cost | When it runs |
|---|---|---|
| Low | 0 to 1 credits | Always |
| Mid | 5 credits | Only when the cheap tier is inconclusive |
| High | 25 credits | Explicit opt-in per call |
| Blocked | never spent | Throws; never reached |
The blocked tier matters more than it looks. Endpoints that are ruinously expensive or prohibited for display do not merely go uncalled by convention. The client raises rather than calling them, so avoidance is structural rather than a matter of discipline.
The request ledger
Every live Nansen request is recorded with its endpoint, request id, credit usage, status, latency and remaining balance. Rejected requests are billed as zero credits, and cache or fixture replays do not count as live network calls.
Live consumption
Measured from the ledger on this instance, right now: Live
Live calls
8,919
real network requests only
Credits consumed
8,587
0.96 per call
Credits remaining
11,842
from the response header
Zero-cost replays
54
never counted as calls
An average below the headline rate is the tiering working. The workhorse endpoints are the cheap ones, and the expensive tier is reached only on purpose.