Are blessings earned or given?

kris
A topic yesterday made me think of this. Everyone's definition of a blessing will probably be a bit different. And there will be those that don't believe in blessings. But you can still think and discuss the logic of the question. Do you receive blessings because you've done good and it's a reward? Or do you receive blessings regardless? I love logic debates and would love to hear some thoughts. I'll post mine in a bit.