Follow a Bitcoin wallet payment after its transaction ID changes

A fee-bumped outgoing payment can acquire a new transaction ID. A support tool needs to link its previous and replacement records under the same payment request.

Start from the wallet's original transaction

Use the original outgoing ID in OLD_TXID and query the wallet that sent it. A wallet-known replacement may be reported through replaced_by_txid. Follow that ID with a second call when present.

bitcoin-cli -rpcwallet=shop gettransaction "$OLD_TXID" | jq '{txid, confirmations, replaced_by_txid, replaces_txid, walletconflicts}'

Keep payment identity separate from attempts

The replacement may point back through replaces_txid. Preserve both IDs, verify recipient outputs against the original payment request and update the active attempt's confirmation state. A missing replacement field is inconclusive for transactions outside the wallet's own send history. A new ID alone is insufficient evidence of a second payment.

bitcoincore.org gettransaction