Solana · Arazzo Workflow
Solana Check Whether an Account Is Rent Exempt
Version 1.0.0
Read an account's size and lamports, then look up the rent-exempt minimum for that size.
Provider
Workflows
account-rent-exemption
Compare an account's lamport balance against the rent-exempt minimum for its size.
Resolves an account's data size and balance, then resolves the rent-exempt threshold for that size.
1
readAccount
getAccountInfo
Read the account to capture the lamports it holds, the program that owns it, and the size of its data, which is what the rent calculation keys on.
2
rentExemptMinimum
getMinimumBalanceForRentExemption
Look up the minimum lamport balance that makes an account of this exact data size rent exempt. Comparing this against the account's lamports tells the caller whether the account is safe or needs topping up.