How could Spaniards obtain encomiendas?

by serving the Spanish crown
by buying them from other Spaniards
by buying them from native chiefs
by inheriting them