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

How AI Agents Should Budget Bitcoin SENDs in Satoshis

permalink THAMER
#ai-agents#bitcoin-payments#budgeting#satoshis

AI agents should reason about spending in integer satoshis, not floating-point BTC values. For a wallet using a signed 10% inclusive fee law, the agent's requested SEND total already includes the miner and software fees.

Budget before authorization

An external agent controller can apply a per-payment maximum, a daily cumulative budget, and a human approval threshold. These are application policies, not part of the BTC KEY credential or the signed fee law.

Illustrative decision: an agent has 60,000 sat of available daily spending budget and requests a 40,000 sat SEND. The external controller checks the 40,000 sat total against its budget. If the signed law allows this transaction, the recipient's illustrative share is 36,000 sat and the inclusive fee budget is 4,000 sat.

Prevent double spending through retries

Before calling SEND, reserve the full 40,000 sat against the external budget atomically, associate a unique idempotency key with the payment intent, and reconcile after the engine reports its result. A timeout does not prove failure; check transaction status before releasing a reservation.

Credential boundary

Do not place BTC KEY in a prompt, browser, model context, or public log. A trusted application component should handle authorization. If the agent can call the engine directly with unrestricted credentials, an external spending cap cannot be enforced.

These are implementation patterns for developers, not a claim that WAB CLI currently implements them.

Related reading:
https://thamer.org/learn/bitcoin-send-10-percent-inclusive-fee-budget-explained
https://thamer.org/learn/designing-ai-agent-send-preflight-checks

Questions & Answers

Explore all questions →

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