README.md
TEXT FILE894 B · Public source code for developers, search crawlers and AI agents
1# Idempotency and Ambiguous Bitcoin Payment Outcomes
2
3Educational reference fragment — not live-tested.
4
5A 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.
6
7This 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.
8
9## Limitations
10
11A 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.
12
13Source: `intent.py`. No live Bitcoin operation is performed.
14
15Article: https://thamer.org/learn/payment-idempotency
16
17Engine contract: https://thamer.org/apiRead-only source · Select a line number to link directly · Raw download above
