Even though you are putting up a deposit there are assurances for you, the buyer, as well. It’s important to keep in mind that a deposit is not an extra cost associated with buying a home. This will be credited towards your closing costs or down payment at closing.
The earnest money deposit lets the seller know that you are serious about buying the home, and that you can afford it. Your deposit should be held in an escrow account. The deposit should be credited to you at closing.