Get bounded exact mining chart series

GET/v1/stats/mining/series

TSCScan API v1.0.0 · Statistics · also at /api/v1/mainnet/stats/mining/series

Chain-dependent response; compact chain headers identify the serving snapshot.

Example

curl 'https://api.tensorcash.org/v1/stats/mining/series'

Parameters

NameInTypeRequiredDescription
min_heightqueryinteger—Optional minimum serving indexed height. Returns DATA_NOT_READY if no eligible source has reached it.
rangequery"24h" | "7d" | "30d" | "all"—Existing TSCScan Home chart ranges only.

Responses

StatusDescriptionBody
200Successful read from one Indexer snapshot
400Invalid argument or page conditions
401Authentication required
403Permission denied
404Absent in a ready indexed range
409Verified chain continuity invalidation
422Bounded response would exceed byte budget
429Quota exceeded; Retry-After supplied
503Data or eligible source not ready
504Bounded upstream query timed out

Schemas

MiningSeriesResponse

FieldTypeRequiredDescription
dataMiningSeriesYesThe requested resource or collection; its schema is specific to this endpoint.

MiningSeries

Fixed-range, height-sampled exact work series. First and last relevant heights are retained; at most 360 points are returned.

FieldTypeRequiredDescription
range"24h" | "7d" | "30d" | "all"YesSelected named time range; the supported values are endpoint-specific.
first_heightintegerYesFirst indexed or selected height represented by this resource.
last_heightintegerYesLast height represented by this group or series.
source_blocksintegerYesNumber of canonical blocks represented by the sampled mining series.
coverageMiningSeriesCoverageYesIndexed coverage for this module or sampled chart series; incomplete data is explicit.
itemsMiningSeriesPoint[]YesResource items in the ordering specified by the endpoint.

MiningSeriesCoverage

Coverage counts apply to sampled points, not every block between samples.

FieldTypeRequiredDescription
sampled_pointsintegerYesNumber of height-sampled chart points in this response; chart data, not the mempool.
work_complete_pointsintegerYesNumber of sampled mining-series points with complete indexed work.
rate_available_pointsintegerYesNumber of sampled chart points with a valid exact work rate.

MiningSeriesPoint

Canonical height sample for the existing Home chart. Null values mean missing work or invalid observation, never zero.

FieldTypeRequiredDescription
heightintegerYesZero-based canonical block height.
timeintegerYesUnix timestamp in seconds; mempool items use Core arrival time and confirmed items use block time.
base_workstring | nullYesExact target-derived work before Proof pricing, encoded as a decimal string.
effective_workstring | nullYesExact Proof-priced work as a decimal string; null when required evidence is unavailable.
proof_price_multiplierMiningSeriesPrice | nullYesProtocol Proof price multiplier at the sampled block; null means unavailable. Finite ratios are exact; only repeating decimals are rounded half away from zero to 12 places.
work_rate_50MiningRate | nullYesEffective work per observed second over the recent 50-block window; null means unavailable. Finite ratios are exact; only repeating decimals are rounded half away from zero to 12 places.
work_window_blocksintegerYesNumber of canonical blocks used in this chart point's rate window.
work_completebooleanYesWhether every block needed for this work calculation has exact indexed work.
observed_secondsintegerYesObserved timestamp span used as the work-rate denominator; zero cannot produce a valid rate.
difficulty_trend_7MiningMedian | nullYesMedian effective work across up to seven recent blocks as a decimal string; null means unavailable. Finite ratios are exact; only repeating decimals are rounded half away from zero to 12 places.
block_interval_secondsinteger | nullYesObserved difference between this block's timestamp and its predecessor.

MiningSeriesPrice

Readable decimal string. Finite ratios retain all digits; only repeating decimals are rounded half away from zero to 12 places. Trailing zeroes are omitted. No floating-point intermediate is used.

Type: string

MiningRate

Readable decimal string. Finite ratios retain all digits; only repeating decimals are rounded half away from zero to 12 places. Trailing zeroes are omitted. No floating-point intermediate is used.

Type: string

MiningMedian

Readable decimal string. Finite ratios retain all digits; only repeating decimals are rounded half away from zero to 12 places. Trailing zeroes are omitted. No floating-point intermediate is used.

Type: string

Problem

FieldTypeRequiredDescription
typestringYesProblem type URI; about:blank is used for the current error family.
titlestringYesShort human-readable problem title, normally the stable error code.
statusintegerYesHTTP status code for this problem response.
code"INVALID_ARGUMENT" | "UNAUTHORIZED" | "FORBIDDEN" | "RESOURCE_NOT_FOUND" | "CHAIN_ANCHOR_INVALIDATED" | "RATE_LIMITED" | "DATA_NOT_READY" | "SERVICE_UNAVAILABLE" | "UPSTREAM_TIMEOUT" | "RESPONSE_TOO_LARGE" | "CORE_UNAVAILABLE" | "CORE_METHOD_UNAVAILABLE" | "CORE_DATA_NOT_READY" | "CORE_CAPACITY" | "TRANSACTION_CAPACITY" | "TRANSACTION_STATE_CHANGED" | "TRANSACTION_REJECTED" | "BROADCAST_OUTCOME_UNKNOWN" | "UNSUPPORTED_ASSET_POLICY"YesStable machine-readable error code; use this instead of matching message text.
request_idstringYesIdentifier also supplied in X-Request-ID; include it when reporting an error.
detailstring—Human-readable explanation of the error.
retry_after_secondsinteger—Suggested wait in seconds before retrying; where present, agrees with Retry-After.
Source
TSCScan public API v1.0.0 (12f98c5) · rHuhu · MIT