# Idempotency and Ambiguous Bitcoin Payment Outcomes Educational reference fragment — not live-tested. A payment intent needs its own unique identifier. Two legitimate payments with identical amounts and destinations are not the same intent. Retries of one intent must retain its original idempotency key. This Python example creates an intent record before any network request. Persist the complete immutable record before execution; the example does not implement a database or retry transport. ## Limitations A timeout after submission is an ambiguous outcome, not proof of failure. Reconcile using the engine contract and known transaction identifiers. Do not create a fresh key or blindly resend after an uncertain outcome. Source: `intent.py`. No live Bitcoin operation is performed. Article: https://thamer.org/learn/payment-idempotency Engine contract: https://thamer.org/api