Rent exemption (Solana)

Last updated:

The RPC method

getMinimumBalanceForRentExemption: Takes an account's data length in bytes and returns the minimum balance, in lamports, that keeps an account of that size rent-exempt. getMinimumBalanceForRentExemption reference →

Applies to: Solana

Endpoint and plans: Solana RPC endpoint.

In more detail

Solana's account documentation gives the minimum as (account_size + 128) × 3,480 lamports per byte-year × 2 years. The balance is refundable when the account is closed. getMinimumBalanceForRentExemption returns the amount for a given data size.

See also

Sources

All terms in the RPC and blockchain glossary