Get Onchain Data
get_onchain_dataBitcoin and Ethereum on-chain, no target. No window = current value; since_ms/until_ms/last = history. Rows newest first, dated at the START of their bucket (first_time + i x step_s); for a total, an extreme or a change read summary, for the period covered read ranges; null + unavailable = no data; _pct = percent, _ratio = fraction; every unit: describe_fields. timeframe: btc_fees only (others keep their source cadence); dataset: the btc_mining history.
EXAMPLE: MVRV over 90 days: fields=["btc_mvrv"], last="90d"
FIELDS:
btc_network: Difficulty, block height, next adjustment.
btc_mempool: Mempool size, fees and trend.
btc_fees: Recommended fees, sat/vB, by urgency. [tf with N or history]
btc_mining: Mining pool concentration, pool ranking and block rewards. [dataset in history]
btc_mvrv: MVRV, label, 30-day change (source ~7 days behind).
btc_nvt: NVT and NVT signal (label: the signal).
btc_active_addresses: Active addresses, 7- and 30-day averages.
btc_revenue_per_difficulty: Miner revenue per unit of difficulty, in USD.
eth_supply: Supply, issuance, burn, net issuance.
eth_gas: Gas prices (gwei) and block usage.
eth_staking: Staking ratio, total staked, APR.
eth_deflation: 24h burn and net issuance (and annualised).
eth_defi: DeFi TVL, DEX volume, health ratio.
eth_gas_momentum: Gas trend: 7-day vs 30-day averages.
eth_squeeze: Supply squeeze index (staking, issuance).
eth_price_btc: ETH price in BTC and USD, 7-day change.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"fields": "<fields>"
},
"name": "get_onchain_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| last | No | History over the last '48h' / '30d' (whole buckets). | |
| limit | No | N latest points per series (default 1). | |
| detail | No | summary: one row per series + summary; full: every column. | compact |
| fields | Yes | Fields (FIELDS below). | |
| columns | No | Columns to keep, e.g. ["close", "volume"]. | |
| dataset | No | btc_mining history (default concentration). | |
| dry_run | No | Plans the call without making it: its quota cost, your remaining rate and quota, the checks. No data, no quota. | |
| since_ms | No | History start: epoch ms, ISO date or '48h' ago. | |
| until_ms | No | History end. | |
| timeframe | No | Step of btc_fees. | |
| max_tokens | No | Response budget, estimated tokens (default 6000). | |
| max_quota_cost | No | Refuses the call, before any request, if it would use more quota requests than this. |