getMinimumBalanceForRentExemption - Solana
getMinimumBalanceForRentExemption. Calculates the minimum balance required for a specific account size to be rent-exempt
getMinimumBalanceForRentExemption - solana [Value: 12CU]
Calculates the minimum balance required for a specific account size to be rent-exempt
Use cases
- Retrieve minimum balance for rent exemption on Solana
- Determine rent-exempt balance for account management
- Ensure accounts meet the rent exemption requirements
Constraints
- Limited to current rent exemption calculations
- Subject to API rate limitations and access
- Dependent on up-to-date network information
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key
Language
Request
Examples
curl https://solana.drpc.org \
-X POST \
-H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0", "id":1, "method":"getMinimumBalanceForRentExemption", "params":[50]}'
Response
200
{
"jsonrpc": "2.0",
"result": 2039280,
"id": 1
}
Request params
idinteger
jsonrpcstring
methodstring
array
usizestring
The length of the account data
commitmentstring
The level of commitment required for the query
- finalized - The node will query the most recent block confirmed by supermajority of the cluster as having reached maximum lockout, meaning the cluster has recognized this block as finalized
- confirmed - The node will query the most recent block that has been voted on by supermajority of the cluster
- processed - The node will query its most recent block. Note that the block may not be complete
Response
200
The minimum amount of lamports an account must have to avoid paying rent, represented as a 64-bit unsigned integer (u64)Response params
object
idinteger
jsonrpcstring
resultuint64