Overview
Rain.fi SDK offers you five classes that you can use to interact with Rain on-chain program.
These classes are:
Rain
- main class representing whole program. It gives you access to utility functions and ability to generate transaction instructions for all interactions with Rain.Pool
- class representing one, particular Pool. It gives you ability to borrow, lend, manage the pool, etc.Loan
- private class, it cannot be initialized by you. It represents one, particular loan on the Rain program and gives you ability to explore its data.LoanRequest
- represent custom loan request sent by the user to a particular borrower inside Rain protocol.Mortgage
- similar toLoan
, it is a private class. It represents a mortgage in the Rain program and gives you access to its data.
Let's explore them in details!