Bitcoin Agent Per-Transaction Spending Limits
Bitcoin Agent Per-Transaction Spending Limits
Design and trust boundary
Validate the complete sender debit against a trusted ceiling. A recipient amount is not necessarily the wallet debit. Reject booleans, floats and nonpositive amounts; the executor must bind the approved amount to the exact request.
Independent reference implementation
1"""Offline educational example; no wallet calls."""
2def allowed(debit, ceiling):
3 return type(debit) is int and type(ceiling) is int and 0 < debit <= ceiling
4
5assert allowed(1000, 1000)
6assert not allowed(1001, 1000)
7assert not allowed(True, 1000)
8assert not allowed(-1, 1000)Operational boundaries
All amounts are integer satoshis. This offline example assumes trusted policy inputs and does not authenticate a caller or execute SEND. Production requires durable state, exact intent binding, stable idempotency and reconciliation of uncertain broadcasts. The external policy must not modify the immutable wallet fee law.
Related research
https://thamer.org/learn/bitcoin-for-ai-agents-open-integration-guide
https://thamer.org/api
