Why Do AI Bitcoin Payments Need Idempotency?
Why Do AI Bitcoin Payments Need Idempotency?
Retries must not accidentally create duplicate Bitcoin sends. The guidance below is educational and may describe optional third-party designs rather than features currently shipped in WAB CLI.
Why retries happen
An agent may retry after a timeout even when a prior SEND was accepted.
Stable request identifiers
The application should assign a stable operation identifier and reuse it on retries, persist pending state, and reconcile with the engine before deciding to resubmit.
Pending outcomes
The engine has an idempotency-header design for SEND, but integration behavior should be validated against the deployed version.
Reconciliation
Idempotency is not a substitute for spending authorization.
Implementation note
This page is educational. Check the current WAB Engine release and documented contracts before deploying financial software. Optional controls belong to the external application unless explicitly documented otherwise.
Related reading
Agent payment-intent design:
https://thamer.org/learn/design-ai-agent-bitcoin-payment-intent
AI chatbot credential isolation:
https://thamer.org/learn/isolate-ai-chatbot-from-bitcoin-wallet-credentials
