Safe Bitcoin Transaction Broadcast and Retry
Broadcast success, node acceptance, network propagation, and confirmation are different events. Clients should be able to retry safely without generating duplicate payments.
Implementation approach
Assign an idempotency key to each send request, persist the transaction identity before retries, and query the node after ambiguous network errors.
Engineering checks
Before treating the integration as complete, confirm that inputs are validated, errors are explicit, and all sensitive operations are restricted to authorized callers. Repeat the workflow on a clean test environment and inspect both successful and failed requests.
Safety and limitations
Do not construct a new payment simply because an HTTP response timed out.
Related reference
Continue with the [related Bitcoin reference](/ask/can-a-bitcoin-transaction-be-reversed) for definitions and background.
