getMinimumBalanceForRentExemption

getMinimumBalanceForRentExemption RPC Method

post
/

Returns the minimum balance required to make an account rent exempt on the Solana blockchain.

Rent is a mechanism on Solana that ensures efficient usage of blockchain resources by requiring accounts to maintain a minimum balance proportional to the amount of data they store. Accounts that maintain this minimum balance are "rent exempt" and will never have their balance reduced by the network.

Authorizations
AuthorizationstringOptional

Authorization header for API key authentication.

Example:

Authorization: your-api-key-here
Body
jsonrpcstring · enumRequired

JSON-RPC protocol version

Example: 2.0Possible values:
idone ofRequired

Request identifier that will be returned in the response

Example: 1
stringOptional
or
numberOptional
methodstring · enumRequired

The RPC method name

Example: getMinimumBalanceForRentExemptionPossible values:
Responses
chevron-right
200

Successful Response

application/json

RPC response containing the minimum balance for rent exemption

jsonrpcstring · enumRequired

JSON-RPC protocol version

Example: 2.0Possible values:
idone ofRequired

Request identifier matching the original request

Example: 1
stringOptional
or
numberOptional
resultinteger · int64Optional

The minimum balance required in lamports to make the account rent exempt.

This value represents the exact number of lamports needed to ensure the account will never have its balance reduced by Solana's rent collection mechanism.

Key facts about rent exemption:

  • 1 SOL = 1,000,000,000 lamports
  • Rent exempt accounts maintain their balance indefinitely
  • Non-exempt accounts lose lamports over time until they're deleted
  • The calculation includes a base rent cost plus storage cost per byte
  • Rent rates are determined by network economics and validator costs
Example: 2039280
post
/

Last updated