DEV Community

Cover image for Rent house with my smartcontract on XDC Network
MahaLakshmi Perumal
MahaLakshmi Perumal

Posted on

Rent house with my smartcontract on XDC Network

The development environment used is XinFin Remix. The program is compiled through this platform and released into a contract. In addition, XinPay is used to create a wallet for the actual test of this experiment.

At the beginning of the program, the items of the contract renewal record are announced, including the address of the tenant, the address of the borrower, the rental time, the price per unit time, whether to rent other items, and whether to purchase insurance.

Next is to deploy the current menu information, and first set the data and information to be recorded as initial values.

The next step is to record the various data information entered by the user and determine whether the remaining balance of the borrower is sufficient to pay the fee. If the borrower has too little balance, it will refuse to rent.

Finally, after the end of the lease, the tenant can withdraw the rent. If the non-tenant account cannot be withdrawn, only the tenant can withdraw the rent.

Top comments (2)

Collapse
 
davidturner81 profile image
DavidTurner81

I have my own small company and I would like to find a new room for myself to start expanding my business. Then my friend advised me one company that provides property management services. This helped me find a suitable room quickly enough! It turned out to be a very convenient service, I recommend you to try it!

Collapse
 
cevin77 profile image
Cevin77

I didn't know about it. Do you happen to know if there is any company that helps in renting out its premises? I would like to know more about this!