ModelBlockPage
| Field | Type | Required | Description |
|---|---|---|---|
data | ModelBlock[] | Yes | The requested resource or collection; its schema is specific to this endpoint. |
page | PageInfo | Yes | Pagination metadata separate from resource rows. |
GET/v1/models/{id}/blocks
Chain-dependent response; compact chain headers identify the serving snapshot.
curl 'https://api.tensorcash.org/v1/models/<id>/blocks'| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Exact 64-character hexadecimal model or asset identifier; use the corresponding list to discover IDs. |
from_height | query | integer | — | Inclusive lower block height, default zero. Preserve when changing page. |
to_height | query | integer | — | Inclusive upper block height, default serving indexed tip. Must not be below from_height. Preserve when changing page. |
min_height | query | integer | — | Optional minimum serving indexed height. Returns DATA_NOT_READY if no eligible source has reached it. |
limit | query | integer | — | Default 25; server may apply a smaller resource cap. |
page | query | integer | — | One-based page number, default 1. Responses include number, limit, total and total_pages. Preserve the filters and limit when changing page. |
| 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 |
ModelBlockPage| Field | Type | Required | Description |
|---|---|---|---|
data | ModelBlock[] | Yes | The requested resource or collection; its schema is specific to this endpoint. |
page | PageInfo | Yes | Pagination metadata separate from resource rows. |
ModelBlockCanonical block whose Proof identifies this exact model name and revision.
| 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. |
PageInfoNumbered pagination. Page defaults to 1. Totals and rows belong to the same database snapshot; current-state collections may move between requests. Empty collections have one page.
| Field | Type | Required | Description |
|---|---|---|---|
limit | integer | Yes | Requested maximum number of rows in this page. |
number | integer | Yes | One-based requested page number, default 1. |
total | integer | Yes | Exact number of rows in the collection at the selected snapshot. |
total_pages | integer | Yes | Number of numbered pages, with a minimum of 1 for an empty collection. |
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. |