HTTP Methods
GetMinimumBalanceForRentExemption
getMinimumBalanceForRentExemption RPC Method
Returns minimum balance required to make an account rent exempt.
Parameters
usize
optional
The Account’s data length
object
optional
Configuration object containing the following fields:
commitment string
optional
The level of commitment desired when querying state
Code Sample
Response
Result Details
<u64>
- Minimum lamports required- The minimum balance needed to keep the account rent-exempt
- Calculated based on the account’s data length
- Prevents the account from being deleted due to insufficient funds for rent