> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# getMinimumBalanceForRentExemption | Solana

> The Solana getMinimumBalanceForRentExemption method returns the minimum balance required to make an account rent exempt. On Solana.

# 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.

## 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.


## OpenAPI

````yaml openapi/solana_node_api/getMinimumBalanceForRentExemption.json POST /9de47db917d4f69168e3fed02217d15b
openapi: 3.0.0
info:
  title: getMinimumBalanceForRentExemption example
  version: 1.0.0
  description: This is an API example for Solana's getMinimumBalanceForRentExemption.
servers:
  - url: https://nd-326-444-187.p2pify.com
security: []
paths:
  /9de47db917d4f69168e3fed02217d15b:
    post:
      tags:
        - query
      summary: getMinimumBalanceForRentExemption
      operationId: getMinimumBalanceForRentExemption
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  default: 1
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: getMinimumBalanceForRentExemption
                params:
                  type: array
                  items:
                    type: integer
                  default:
                    - 50
      responses:
        '200':
          description: Minimum balance for rent exemption details
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: integer

````