Ssutxos
CLI tool to inspect SideSwap UTXOs: a Python command-line utility to list unspent transaction outputs from a Liquid wallet derived via BIP39 mnemonic, with optional JSON export.
Install / Use
/learn @devridge0/SsutxosREADME
A CLI tool to inspect SideSwap UTXOs
ssutxos is a Python command-line interface (CLI) tool for interacting with Liquid wallets.
It allows users to list UTXOs (unspent transaction outputs) for a wallet derived from a BIP39 mnemonic, save them in JSON format, and compare different UTXO sets by exploring transaction descendants via the Blockstream Esplora API.
✨ Features
- Display the version of the CLI.
- List Liquid UTXOs for a wallet from a mnemonic.
- Support for both
mainnetandtestnetLiquid networks. - Save UTXOs as a JSON file for further processing.
- Compare two UTXO sets and trace descendant relationships via transaction graph traversal.
📦 Installation
git clone https://github.com/devridge0/ssutxos.git
cd ssutxos
python -m venv lwk-venv
source lwk-venv/bin/activate
pip install -r requirements.txt
pip install -e .
🚀 Usage
Show Version
ssutxos --version
Output:
ssutxos v1.0.0
List UTXOs
ssutxos list --mnemonic "your twelve or twenty-four word mnemonic" --network mainnet
Options
| Option | Description | Default |
| -------------------- | -------------------------------------- | ------- |
| --mnemonic / -mn | BIP39 mnemonic (12 or 24 words) | None |
| --network | Liquid network: mainnet or testnet | mainnet |
| --output / -o | Output JSON file | utxos.json|
Example
ssutxos list --mnemonic/-mn "abandon abandon abandon ..." --network testnet --output/-o utxos.json
This will output UTXOs in a JSON format like:
[
{
"txid": "abc123...",
"vout": 0,
"asset": "L-BTC",
"amount": 0.1234,
"address": "ex1q..."
}
]
Additionally, it saves the UTXOs to a file named utxos.json.
Compare Two UTXO Sets
You can compare UTXOs from two JSON files.
ssutxos compare run utxos1.json utxos2.json --sleep-ms 100
- utxos1.json → the target UTXOs
- utxos2.json → starting UTXOs (the exploration frontier)
--sleep-ms→ delay between API requests (default: 100 ms, helps avoid rate limits)
Supported JSON Formats
Both wrapped and flat formats are accepted:
Wrapped
{
"utxos": [
{ "txid": "abc123...", "vout": 0, "asset": "L-BTC", "amount": 0.0001, "address": "lq1..." }
]
}
Flat
[
{ "txid": "abc123...", "vout": 0, "asset": "L-BTC", "amount": 0.0001, "address": "lq1..." }
]
Example Run
Starting from utxos1.json utxos.
Searching in utxos2.json-derived descendants.
Targets: 2; Start frontier: 2
API base: https://blockstream.info/liquid/api; sleep: 100 ms
Searching hop 0: new frontier size 2
Searching hop 1: new frontier size 5
FOUND a match at hop 2: Outpoint(txid=abc123..., vout=1)
Stopped by user. Total matches found: 1
🗂 Code Structure
ssutxos/cli.py– Main CLI entrypoint.ssutxos/explorer.py– Esplora API client.ssutxos/graph.py– Graph utilities (outpoints, BFS traversal).ssutxos/compare.py– Compare UTXO sets via graph traversal.ssutxos/enrich.py– UTXO enrichment helpers.ssutxos/utils.py– JSON and helper utilities.
⚠️ Notes
- Ensure you have internet access to query the Blockstream Esplora Liquid API (
https://blockstream.info/liquid/api). - Exploration runs until you press Ctrl-C. Large graphs may consume significant resources.
- Only L-BTC (Liquid Bitcoin) is supported for balance calculation.
📜 License
MIT License © 2025
Related Skills
claude-opus-4-5-migration
82.3kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
model-usage
334.9kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
TrendRadar
49.7k⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI 智能筛选新闻 + AI 翻译 + AI 分析简报直推手机,也支持接入 MCP 架构,赋能 AI 自然语言对话分析、情感洞察与趋势预测等。支持 Docker ,数据本地/云端自持。集成微信/飞书/钉钉/Telegram/邮件/ntfy/bark/slack 等渠道智能推送。
mcp-for-beginners
15.6kThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable, and secure AI workflows from session setup to service orchestration.
