Get recent miner block distribution

GET/v1/stats/miners

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

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

Example

curl 'https://api.tensorcash.org/v1/stats/miners'

Parameters

NameInTypeRequiredDescription
min_heightqueryinteger—Optional minimum serving indexed height. Returns DATA_NOT_READY if no eligible source has reached it.
blocksqueryinteger—Recent canonical block window; default 100, maximum 300.

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

MinerStatisticsResponse

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

MinerStatistics

Recent block-count distribution, not work-weighted Pool share.

FieldTypeRequiredDescription
requested_blocksintegerYesRequested size of the recent canonical block window.
observed_blocksintegerYesActual number of canonical blocks found in the selected bounded window.
unknown_blocksintegerYesObserved blocks lacking required indexed work evidence.
start_heightinteger | nullYesFirst inclusive canonical height represented by the window or candle.
end_heightintegerYesFinal inclusive canonical height represented by the window or candle.
share_basis"blocks"YesBasis used for miner shares; the enum documents whether work or block count is used.
itemsMinerStatisticsItem[]YesResource items in the ordering specified by the endpoint.

MinerStatisticsItem

Payout sums the attributed addressed coinbase output; null address means unknown miner.

FieldTypeRequiredDescription
addressstring | nullYesChain address text; null represents an unattributed output where allowed.
block_countintegerYesNumber of blocks represented by this resource or group.
payoutAmountYesExact attributed coinbase payout sum in TSC smallest units.
last_heightintegerYesLast height represented by this group or series.

KnownAmount

FieldTypeRequiredDescription
unitsstringYesExact decimal string in smallest units; signed where the schema permits. Divide by 10^precision only for display.
precisionintegerYesDecimal places for the smallest-unit amount. TSC uses 8; assets use their indexed precision.

UnknownAmount

FieldTypeRequiredDescription
state"unknown"YesAvailability or confirmation state. Use the declared enum/constant; unknown or unavailable never means numeric zero.
unitsnullYesExact decimal string in smallest units; signed where the schema permits. Divide by 10^precision only for display.
precisioninteger | nullYesDecimal places for the smallest-unit amount. TSC uses 8; assets use their indexed precision.

UnavailableAmount

FieldTypeRequiredDescription
state"unavailable"YesAvailability or confirmation state. Use the declared enum/constant; unknown or unavailable never means numeric zero.
unitsnullYesExact decimal string in smallest units; signed where the schema permits. Divide by 10^precision only for display.
precisioninteger | nullYesDecimal places for the smallest-unit amount. TSC uses 8; assets use their indexed precision.

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