Script hash UTXOs
GET/esplora/api/scripthash/{key}/utxo
Wallet API v1.0.0 · Script hashes
As GET /address/{address}/utxo, keyed by Electrum script hash.
Example
curl 'https://api.tensorcash.org/esplora/api/scripthash/<scripthash>/utxo'
Parameters
| Name | In | Type | Required | Description |
|---|
key | path | string | Yes | Electrum script hash, 64 hex characters. |
Responses
| Status | Description | Body |
|---|
200 | Unspent outputs | |
400 | Invalid scripthash, or Too many unspent transaction outputs (>5000) | |
422 | Validation Error | |
503 | Index syncing: n/m | |
Schemas
Utxo
| Field | Type | Required | Description |
|---|
txid | string | Yes | |
vout | integer | Yes | |
status | TxStatus | Yes | |
value | integer | Yes | Satoshis. |
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