initial code for sending coins and checking received coins