Get pending transaction
GET/v1/mempool/transactions/{txid}
TSCScan API v1.0.0 · Mempool · also at /api/v1/mainnet/mempool/transactions/{txid}
Chain-dependent response; compact chain headers identify the serving snapshot.
Example
curl 'https://api.tensorcash.org/v1/mempool/transactions/edf886b19fe4bc2e9d2bd2cc690836d569984acc0dca1592c606f93978841e9f'
Parameters
| Name | In | Type | Required | Description |
|---|
txid | path | string | Yes | Exact 64-character hexadecimal transaction ID. |
min_height | query | integer | — | Optional minimum serving indexed height. Returns DATA_NOT_READY if no eligible source has reached it. |
Responses
| 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 | |
Schemas
TransactionDetailResponse
| Field | Type | Required | Description |
|---|
data | TransactionDetail | Yes | The requested resource or collection; its schema is specific to this endpoint. |
TransactionDetail
| Field | Type | Required | Description |
|---|
txid | string | Yes | 64-character hexadecimal transaction ID; searches accept either case. |
state | "confirmed" | "unconfirmed" | "pending" | Yes | Availability or confirmation state. Use the declared enum/constant; unknown or unavailable never means numeric zero. |
block | ChainPoint | null | Yes | Containing canonical block, or null for an unconfirmed transaction. |
size_bytes | integer | Yes | Serialized block or transaction size in bytes. |
input_count | integer | Yes | Number of transaction inputs. |
output_count | integer | Yes | Number of transaction outputs. |
fee | Amount | Yes | Exact input total minus output total; null for coinbase where specified, otherwise unknown if prevouts are unavailable. |
time | integer | — | Unix timestamp in seconds; mempool items use Core arrival time and confirmed items use block time. |
version | integer | — | Exact Core header/transaction version or indexed Proof version, according to the enclosing resource. |
lock_time | integer | — | Core transaction lock-time value; values below 500000000 denote block height, otherwise Unix time. |
weight | integer | null | — | Core block/transaction weight; null or omitted where the exact value is unavailable. |
total_output | Amount | — | Exact sum of all outputs of this transaction in TSC smallest units; never a fiat value. |
ChainPoint
| Field | Type | Required | Description |
|---|
height | integer | Yes | Zero-based canonical block height. |
hash | string | Yes | 64-character hexadecimal block hash. |
Amount
Exact 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. |
- Source
- TSCScan public API v1.0.0 (12f98c5) · rHuhu · MIT