Confirmed address transactions
GET/esplora/api/address/{key}/txs/chain
Wallet API v1.0.0 · Addresses
The 25 newest confirmed transactions. Page with /txs/chain/{last_seen}.
Example
curl 'https://api.tensorcash.org/esplora/api/address/tc1qmvalge7mnhct9qj5uua8rn0dmjcyh6fmvrr46j/txs/chain'
Parameters
| Name | In | Type | Required | Description |
|---|
key | path | string | Yes | TensorCash address. |
Responses
| Status | Description | Body |
|---|
200 | Transactions, newest first | |
400 | Invalid address | |
422 | Validation Error | |
503 | Index syncing: n/m | |
Schemas
Transaction
| Field | Type | Required | Description |
|---|
txid | string | Yes | |
version | integer | Yes | |
locktime | integer | Yes | |
vin | TxIn[] | Yes | |
vout | TxOut[] | Yes | |
size | integer | Yes | Bytes. |
weight | integer | Yes | Weight units. |
fee | integer | Yes | Satoshis. |
status | TxStatus | Yes | |
TxIn
| Field | Type | Required | Description |
|---|
txid | string | Yes | Spent transaction; 64 zeros for a coinbase input. |
vout | integer | Yes | Spent output index; 4294967295 for a coinbase input. |
prevout | TxOut | null | Yes | The output this input spends; null for a coinbase input. |
scriptsig | string | Yes | Input script, hex (the coinbase data for a coinbase input). |
scriptsig_asm | string | Yes | |
is_coinbase | boolean | Yes | |
witness | string[] | — | Witness stack, hex items. Present when not empty. |
sequence | integer | Yes | |
TxOut
| Field | Type | Required | Description |
|---|
scriptpubkey | string | Yes | Output script, hex. |
scriptpubkey_asm | string | Yes | Output script in bcore's asm format (not Esplora's OP_PUSHBYTES_n form). |
scriptpubkey_type | "p2pkh" | "p2sh" | "v0_p2wpkh" | "v0_p2wsh" | "v1_p2tr" | "op_return" | "p2pk" | "multisig" | "anchor" | "unknown" | Yes | |
scriptpubkey_address | string | — | Present when the script has an address. |
value | integer | Yes | Amount in 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