From f3814a0478920c1f2464092e078fd5461b98afe0 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 15 Apr 2021 04:35:08 +0000 Subject: [PATCH] docs: freshen and clarify rent-exempt dev description (#16562) (cherry picked from commit 76ce28c7233342ca20adfbe595ea54c10fff0afe) Co-authored-by: Trent Nelson --- docs/src/developing/programming-model/accounts.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/src/developing/programming-model/accounts.md b/docs/src/developing/programming-model/accounts.md index b61b67795c..7a9d6870cd 100644 --- a/docs/src/developing/programming-model/accounts.md +++ b/docs/src/developing/programming-model/accounts.md @@ -206,3 +206,16 @@ balance of 105,290,880 lamports (=~ 0.105 SOL) to be rent-exempt: ```text 105,290,880 = 19.055441478439427 (fee rate) * (128 + 15_000)(account size including metadata) * ((365.25/2) * 2)(epochs in 2 years) ``` + +Rent can also be estimated via the [`solana rent` CLI subcommand](cli/usage.md#solana-rent) + +```text +$ solana rent 15000 +Rent per byte-year: 0.00000348 SOL +Rent per epoch: 0.000288276 SOL +Rent-exempt minimum: 0.10529088 SOL +``` + +Note: Rest assured that, should the storage rent rate need to be increased at some +point in the future, steps will be taken to ensure that accounts that are rent-exempt +before the increase will remain rent-exempt afterwards