I don't know how this works in other countries, but in Iran, when you want to leave the country, say, on business, you need to post bail, which can consist of either an amount of money or a piece of property with cash value, which will be returned to you after you get back. Can we use the word "bail" or is there a more suitable word for such an occasion?
Possibly you're looking for the word bond (certainly not bail):
a. A guarantee issued by a surety agency on behalf of a client, requiring the surety to pay a sum of money to a third party in the event the client fails to fulfill certain obligations; a surety bond.
Absent that, surety itself could work for you.
2. (Law) security given against loss or damage or as a guarantee that an obligation will be met