Output spends
GET/esplora/api/tx/{txid}/outspends
Wallet API v1.0.0 · Transactions
For each output of the transaction, in order: whether it is spent, and by which input of which transaction.
Example
curl 'https://api.tensorcash.org/esplora/api/tx/edf886b19fe4bc2e9d2bd2cc690836d569984acc0dca1592c606f93978841e9f/outspends'
Parameters
| Name | In | Type | Required | Description |
|---|
txid | path | string | Yes | Transaction id, 64 hex characters. |
Responses
| Status | Description | Body |
|---|
200 | One entry per output | |
400 | Invalid txid | |
404 | Transaction not found | |
422 | Validation Error | |
503 | Index syncing: n/m | |
Schemas
Outspend
| Field | Type | Required | Description |
|---|
spent | boolean | Yes | |
txid | string | — | Spending transaction. Spent only. |
vin | integer | — | Input index in the spending transaction. Spent only. |
status | TxStatus | — | |
TxStatus
| Field | Type | Required | Description |
|---|
confirmed | boolean | Yes | False while the transaction is in the mempool. |
block_height | integer | — | Confirmed only. |
block_hash | string | — | Confirmed only. |
block_time | integer | — | Block timestamp, Unix seconds. Confirmed only. |
HTTPValidationError
ValidationError
| Field | Type | Required | Description |
|---|
loc | string | integer[] | Yes | |
msg | string | Yes | |
type | string | Yes | |
- Source
- tensorcash-wallet-api (tensorcash-api) v1.0.0 (772799e) · bobponey · MIT