Skip to main content
Loading market data…
GET/api/v1/on-chain/{asset}/tx-countHobbyist tier+ · 30 req/min

Daily settled transaction count — CoinMetrics `TxCnt`.

Wraps the CoinMetrics `TxCnt` metric — daily settled transaction count. Good baseline for network activity; combine with `/active-addresses` for an active-user-per-tx ratio.

Path parameters

Segments of the URL path, validated server-side.

NameTypeRequiredDefaultDescription
assetstringrequired
Short alphabetic asset code.

Query parameters

All query parameters are optional unless marked required.

NameTypeRequiredDefaultDescription
daysnumberoptional365
History window. Max 730.

Response shape

Always wrapped in the standard envelope. Nullable fields are explicitly marked — treat missing numeric data as a real data-source gap, not as an error.

data payloadtypescript
// Wrapped in the standard envelope:
// {
//   data: /* shape below */,
//   meta?: { total?: number; limit?: number; offset?: number; ... }
// }

{
  asset: string;
  days: number;
  metric: "TxCnt";
  points: Array<{ ts: number; value: number }>;
}

Example

Copy the curl, replace YOUR_KEY with a real key from your dashboard, and run.

Requestbash
curl -sS "http://localhost:3000/api/v1/on-chain/BTC/tx-count?days=30"
Responsejson
{
  "data": {
    "asset": "BTC",
    "days": 30,
    "metric": "TxCnt",
    "points": [ { "ts": 1744761600000, "value": 385210 } ]
  },
  "meta": { "total": 1, "days": 30 }
}

Next

Check the error code reference, or get an API key to try the request against your own account.