TSB Indexer is an MVP adapter and indexer server that connects to a Bitcoin data source (using the mempool.space API for testnet) and scans the blockchain for UTXOs containing custom token data based on the TSB (Token Standard for Bitcoin) protocol. The indexer decodes on‑chain token metadata (embedded in Taproot outputs) and exposes REST endpoints for wallet integrations (such as custom wallet extensions or third‑party services).
-
Blockchain Scanning:
Scans the last N blocks for token issuance outputs and (in future) transfer outputs with embedded token metadata. -
Custom Token Decoding:
Decodes token data from transaction outputs—extracting token ID, token amount, token name, and token symbol from the witness data (when spent via script-path). -
RESTful API:
Exposes endpoints for retrieving the current block height, token data, and more. -
MERN-Friendly (MVC) Structure:
Uses Node.js, Express, and a basic HTML/JS frontend for a proof-of-concept user interface. -
Heroku Deployment Ready:
Includes a Procfile and environment variable support for easy deployment.