After sending Bitcoin to any address, how can I check if the transaction has at least one confirmation?
Should I poll the transaction repeatedly or is there any event when confirmation is made.
Bitcoin Stack Exchange is a question and answer site for Bitcoin crypto-currency enthusiasts. It only takes a minute to sign up.Sign up to join this community
In order to see if the transaction has confirmed, you can search for it in any indexed transaction database. This can include Bitcoin Core running in
-txindex mode, or a block explorer such as live.blockcypher.com or blockchain.info, for example. As soon as the transaction has been included in a block, it has 1 confirmation. If it is not found, or is still in the mempool, then it has either not propagated (failed validation checks), or has yet to be mined.