POST
/
9de47db917d4f69168e3fed02217d15b
curl --request POST \
  --url https://nd-326-444-187.p2pify.com/9de47db917d4f69168e3fed02217d15b \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "getMinimumBalanceForRentExemption",
  "params": [
    50
  ]
}'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": 123
}

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.

Body

application/json

Response

200 - application/json
Minimum balance for rent exemption details

The response is of type object.