Reading through the web3.js transaction documentation, what is an optimal approach of waiting for a transaction to confirm?
The method sendTransaction() returns a
String - The 32 Bytes transaction hash as HEX string.
But when it does is the transaction confirmed in the blockchain? If not, is an approach using a loop, a wait and a hash transaction optimal?