THAMER
Sovereign Bitcoin Wallet

WALLET AI BITCOIN

Your Bitcoin Wallet. Your Keys. Your Engine.

Self-hosted Bitcoin software built for developers, applications, and AI agents.

CREATE WALLET

example.py

TEXT FILE

719 B · Public source code for developers, search crawlers and AI agents

Download / RawBack to folder
Python · 19 lines
1"""Offline reference: no network, no credentials, no transaction execution."""
2import json
3
4FIXTURE = '{"ok":true,"result":{"balance_sat":12500}}'
5
6def balance_sat(raw: str) -> int:
7    envelope = json.loads(raw)
8    if not isinstance(envelope, dict) or envelope.get("ok") is not True:
9        raise ValueError("engine did not report success")
10    result = envelope.get("result")
11    if not isinstance(result, dict):
12        raise ValueError("missing result")
13    amount = result.get("balance_sat")
14    if type(amount) is not int or amount < 0:
15        raise ValueError("invalid satoshi amount")
16    return amount
17
18def contract_cases():
19    return [FIXTURE, '{"ok":false}', '{"ok":true,"result":{"balance_sat":true}}']
Read-only source · Select a line number to link directly · Raw download above

Latest from the Lab

THAMER illustrated developer portrait and signature

ABOUT THE DEVELOPER

Independent Software Developer specializing in Bitcoin Script, Golang, and AI Agents.

Software engineering · Independent research · Open-source projects