Wallet API

Endpointi: 24 · v1.0.0 · OpenAPI 3.1.0 · OpenAPI specifikacija (JSON)

Esplora-compatible REST API for TensorCash light wallets: balances, UTXOs, history, mempool, fee estimates and broadcast of already-signed transactions. Esplora is the API Blockstream and mempool.space serve, so wallet code written against it works by changing the base URL. Amounts are integer satoshis (1 TSC = 100 000 000). Errors are plain text with an HTTP status. While the index lags the node, address and transaction routes answer 503 Index syncing: n/m.

Blocks

Chain tip and block hashes, as plain text.

Transactions

Esplora transaction objects, status, raw hex, spends, and broadcast of a signed transaction.

Addresses

Per-address balances, UTXOs and history. Each GET answers from the server's current view.

Script hashes

The same six routes as Addresses, keyed by Electrum script hash: sha256 of the scriptPubKey, byte-reversed, hex.

Wallet batch

Not part of Esplora: many addresses per request, for HD wallets that track thousands of addresses. Responses carry a view that pins one chain tip and mempool copy across the calls of a sync.

Fees

Fee-rate estimates.

Health

Index and node tips, outside the /esplora/api prefix.