getMinimumBalanceForRentExemption | Solana

Solana getMinimumBalanceForRentExemption method

The Solana getMinimumBalanceForRentExemption method returns the minimum balance required to make an account rent exempt.

This method provides the minimum number of lamports an account needs to have to be exempt from rent. Accounts with a balance below this amount will have their balance decrease over time, while accounts with a balance equal to or above this amount will maintain their balance indefinitely.

👍

Get you own node endpoint today

Start for free and get your app to production levels immediately. No credit card required.

You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • dataLength — the length of the data for the account.

Response

  • value — the minimum number of lamports required to make an account of the given dataLength rent exempt.

Use case

A practical use case for getMinimumBalanceForRentExemption is to determine the minimum balance required to make an account rent exempt. This can be useful for wallets or other applications that need to display or make use of this information.

Try the getMinimumBalanceForRentExemption RPC method yourself

Language
Click Try It! to start a request and see the response here!