Script hash balance

GET/esplora/api/scripthash/{key}

Wallet API v1.0.0 · Script hashes

As GET /address/{address}, keyed by Electrum script hash.

Example

curl 'https://api.tensorcash.org/esplora/api/scripthash/<scripthash>'

Parameters

NameInTypeRequiredDescription
keypathstringYesElectrum script hash: sha256 of the scriptPubKey, byte-reversed, 64 hex characters.

Responses

StatusDescriptionBody
200Script hash summary
400Invalid scripthash
  • text/plain string
422Validation Error
503Index syncing: n/m
  • text/plain string

Schemas

ScripthashSummary

FieldTypeRequiredDescription
scripthashstringYes
chain_statsChainStatsYes
mempool_statsChainStatsYes

ChainStats

FieldTypeRequiredDescription
funded_txo_countintegerYesOutputs received.
funded_txo_sumintegerYesSatoshis received.
spent_txo_countintegerYesOutputs spent.
spent_txo_sumintegerYesSatoshis spent.
tx_countintegerYesTransactions touching the address.

ValidationError

FieldTypeRequiredDescription
locstring | integer[]Yes
msgstringYes
typestringYes
Source
tensorcash-wallet-api (tensorcash-api) v1.0.0 (772799e) · bobponey · MIT