Specifically, you'll have to spend your time defending a gym. For every 10 minutes you have a Pokémon in a gym, you could earn one PokéCoin. The catch is you only receive the payout when your Pokémon is knocked out of the gym, and you can only earn 50 coins per day.