I need to know how to do do the following tasks, after I triggered a Metamask payment with Web3 and the user paid:
how to get the exact public address the user used to make that payment? I need that address because my dApp is a game and if the user wins, I will use that address to pay the user their winnings.
how to listen for confirmation that their payment has been written to the Ethereum ledger (has been confirmed), from the same web page Javascript that initiated the transaction with Metamask?
A good gist or code sample would be incredibly useful if you know of one.