4

According to the solana docs

Alternatively, an account can be made entirely exempt from rent collection by depositing at least 2 years worth of rent.

Does this mean, that so long as you deposit 2 years worth of rent, your account can never be purged?

1 Answer 1

7

Yes correct, when you deposit more than 2 years of rent, your account is rent exempted. Actually most projects are using the rent exemption amount by default. There are not a lot of usecases where you would want to deposit less than the rent exemption amount since you can get your SOL back when you don't need the account anymore.

3
  • So what's even the purpose of having rent at all? Aug 25, 2021 at 5:30
  • 3
    You can think of it as a mechanism to prevent people from ddosing the data storage. The more storage you require, the more SOL you need to lockup. Most blockchains including Ethereum has this mechanism, it's just not clearly stated as rent.
    – yangli-io
    Aug 25, 2021 at 5:44
  • 1
    And how much is that in lamports per year per kB? The documentation goes as far as to say that the rent price is a fixed amount of lamports per kB per year but for reasons that are beyond my comprehension they don't say how much.
    – matteo
    Apr 24, 2022 at 17:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.