Basic coinbase -> firebase code