BlockDetailResponse
| Field | Type | Required | Description |
|---|---|---|---|
data | BlockDetail | Yes | The requested resource or collection; its schema is specific to this endpoint. |
GET/v1/blocks/{hash}
Chain-dependent response; compact chain headers identify the serving snapshot.
curl 'https://api.tensorcash.org/v1/blocks/7dca3de9bf809694e1d53a17e2cb09ab547a272b29d14bf6927d7ef161789eab'| Name | In | Type | Required | Description |
|---|---|---|---|---|
hash | path | string | Yes | Exact 64-character hexadecimal canonical block hash. |
min_height | query | integer | — | Optional minimum serving indexed height. Returns DATA_NOT_READY if no eligible source has reached it. |
| Status | Description | Body |
|---|---|---|
200 | Successful read from one Indexer snapshot | |
400 | Invalid argument or page conditions | |
401 | Authentication required | |
403 | Permission denied | |
404 | Absent in a ready indexed range | |
409 | Verified chain continuity invalidation | |
422 | Bounded response would exceed byte budget | |
429 | Quota exceeded; Retry-After supplied | |
503 | Data or eligible source not ready | |
504 | Bounded upstream query timed out |
BlockDetailResponse| Field | Type | Required | Description |
|---|---|---|---|
data | BlockDetail | Yes | The requested resource or collection; its schema is specific to this endpoint. |
BlockDetailWeight is included only when an exact value has been indexed; it is never estimated from size.
| Field | Type | Required | Description |
|---|---|---|---|
height | integer | Yes | Zero-based canonical block height. |
hash | string | Yes | 64-character hexadecimal block hash. |
time | integer | Yes | Unix timestamp in seconds; mempool items use Core arrival time and confirmed items use block time. |
tx_count | integer | Yes | Number of transactions in this canonical block, including coinbase. |
miner_address | string | null | — | Address of the attributed coinbase payout, or null when unattributed. |
miner_reward | Amount | — | Exact attributed coinbase payout in TSC smallest units. |
previous_hash | string | null | Yes | Previous canonical block hash, or null for genesis. |
size_bytes | integer | Yes | Serialized block or transaction size in bytes. |
weight | integer | null | — | Core block/transaction weight; null or omitted where the exact value is unavailable. |
merkle_root | string | null | — | 64-character hexadecimal transaction Merkle root. |
target | string | null | — | Exact base target decoded from Core's compact bits. |
adjusted_target | string | null | — | Exact integer target decoded from the adjusted compact bits. |
effective_target | string | null | — | Exact priced target used for effective-difficulty calculation. |
chainwork | string | null | — | Core's exact cumulative chain-work value as a hexadecimal string. |
bits | string | null | — | Core's base compact target bits as an exact hexadecimal string. |
adjusted_bits | string | null | — | Core model-adjusted compact difficulty bits, as an exact hexadecimal string. |
base_difficulty | string | null | — | Exact target-derived base difficulty before model adjustment and Proof pricing. |
model_adjusted_difficulty | string | null | — | Exact target-derived difficulty after model adjustment and before Proof pricing. |
effective_difficulty | string | null | — | Exact difficulty after model adjustment and Proof pricing. |
nonce | integer | null | — | Core's exact block-header nonce representation. |
version | integer | null | — | Exact Core header/transaction version or indexed Proof version, according to the enclosing resource. |
median_time | integer | null | — | Core's median block time in Unix seconds. |
AmountExact smallest-unit decimal. Known zero is units '0'.
Type: KnownAmount | UnknownAmount | UnavailableAmount
KnownAmount| Field | Type | Required | Description |
|---|---|---|---|
units | string | Yes | Exact decimal string in smallest units; signed where the schema permits. Divide by 10^precision only for display. |
precision | integer | Yes | Decimal places for the smallest-unit amount. TSC uses 8; assets use their indexed precision. |
UnknownAmount| Field | Type | Required | Description |
|---|---|---|---|
state | "unknown" | Yes | Availability or confirmation state. Use the declared enum/constant; unknown or unavailable never means numeric zero. |
units | null | Yes | Exact decimal string in smallest units; signed where the schema permits. Divide by 10^precision only for display. |
precision | integer | null | Yes | Decimal places for the smallest-unit amount. TSC uses 8; assets use their indexed precision. |
UnavailableAmount| Field | Type | Required | Description |
|---|---|---|---|
state | "unavailable" | Yes | Availability or confirmation state. Use the declared enum/constant; unknown or unavailable never means numeric zero. |
units | null | Yes | Exact decimal string in smallest units; signed where the schema permits. Divide by 10^precision only for display. |
precision | integer | null | Yes | Decimal places for the smallest-unit amount. TSC uses 8; assets use their indexed precision. |
Problem| Field | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Problem type URI; about:blank is used for the current error family. |
title | string | Yes | Short human-readable problem title, normally the stable error code. |
status | integer | Yes | HTTP 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" | Yes | Stable machine-readable error code; use this instead of matching message text. |
request_id | string | Yes | Identifier also supplied in X-Request-ID; include it when reporting an error. |
detail | string | — | Human-readable explanation of the error. |
retry_after_seconds | integer | — | Suggested wait in seconds before retrying; where present, agrees with Retry-After. |