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

# getMinimumBalanceForRentExemption

> Mengembalikan saldo minimum yang diperlukan agar akun bebas sewa.

## Parameter Permintaan

<ParamField body="address" type="number" required>
  Ukuran data akun dalam byte yang perlu Anda simpan di blockchain Solana.
</ParamField>

<ParamField body="commitment" type="string">
  Tingkat komitmen untuk permintaan tersebut.

  * `confirmed`
  * `finalized`
  * `processed`
</ParamField>


## OpenAPI

````yaml id/openapi/rpc-http/getMinimumBalanceForRentExemption.yaml POST /
openapi: 3.1.0
info:
  title: API RPC Solana
  version: 1.0.0
  description: >-
    API kalkulator biaya penyimpanan akun untuk menentukan saldo minimum SOL
    yang diperlukan agar akun Solana bebas biaya sewa berdasarkan persyaratan
    ukuran datanya.
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
servers:
  - url: https://mainnet.helius-rpc.com
    description: Titik akhir RPC Mainnet
  - url: https://devnet.helius-rpc.com
    description: Titik akhir RPC Devnet
security: []
paths:
  /:
    post:
      tags:
        - RPC
      summary: getMinimumBalanceForRentExemption
      description: >
        Menghitung saldo minimum SOL yang diperlukan agar akun Solana bebas
        biaya sewa secara permanen.

        API ekonomi penting ini membantu menentukan jumlah tepat SOL yang harus
        dialokasikan

        ke akun berdasarkan ukuran datanya agar tidak perlu membayar biaya sewa
        berulang. Akun yang

        mempertahankan saldo minimum ini dibebaskan dari biaya sewa penyimpanan
        jaringan sehingga

        memastikan persistensi jangka panjangnya di blockchain. Sangat penting
        bagi pengembang dompet, pembuat DApp,

        dan aplikasi apa pun yang membuat akun on-chain untuk memperkirakan
        biaya pembuatan akun secara akurat

        dan mendanai akun baru dengan benar berdasarkan kebutuhan penyimpanan
        yang dimaksudkan.
      operationId: getMinimumBalanceForRentExemption
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - jsonrpc
                - id
                - method
              properties:
                jsonrpc:
                  type: string
                  description: Versi protokol JSON-RPC.
                  enum:
                    - '2.0'
                  example: '2.0'
                  default: '2.0'
                id:
                  type: string
                  description: Pengidentifikasi unik untuk permintaan.
                  example: '1'
                  default: '1'
                method:
                  type: string
                  description: Nama metode RPC yang akan dipanggil.
                  enum:
                    - getMinimumBalanceForRentExemption
                  example: getMinimumBalanceForRentExemption
                  default: getMinimumBalanceForRentExemption
                params:
                  type: array
                  description: Parameter untuk metode tersebut.
                  default:
                    - 50
                  items:
                    oneOf:
                      - type: integer
                        description: >-
                          Ukuran data akun dalam byte yang perlu Anda simpan di
                          blockchain Solana.
                        example: 50
                      - type: object
                        description: Objek konfigurasi dengan opsi tambahan.
                        properties:
                          commitment:
                            type: string
                            description: Tingkat komitmen untuk permintaan.
                            enum:
                              - confirmed
                              - finalized
                              - processed
                            example: finalized
      responses:
        '200':
          description: Berhasil mengambil saldo minimum untuk pembebasan biaya sewa.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                    description: Versi protokol JSON-RPC.
                    enum:
                      - '2.0'
                    example: '2.0'
                  id:
                    type: string
                    description: Pengidentifikasi yang cocok dengan permintaan.
                    example: '1'
                  result:
                    type: integer
                    description: >-
                      Saldo minimum SOL dalam lamport yang diperlukan agar akun
                      dengan ukuran data ini bebas biaya sewa secara permanen.
                    example: 500
        '400':
          description: >-
            Permintaan Buruk - Parameter permintaan tidak valid atau format
            permintaan salah.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32602
                  message: Parameter tidak valid
                id: '1'
        '401':
          description: Tidak Diotorisasi - Kunci API tidak valid atau tidak disertakan.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32001
                  message: Tidak diotorisasi
                id: '1'
        '429':
          description: Terlalu Banyak Permintaan - Batas laju terlampaui.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32005
                  message: Terlalu banyak permintaan
                id: '1'
        '500':
          description: Kesalahan Server Internal - Terjadi kesalahan pada server.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32603
                  message: Kesalahan internal
                id: '1'
        '503':
          description: Layanan Tidak Tersedia - Layanan untuk sementara tidak tersedia.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32002
                  message: Layanan tidak tersedia
                id: '1'
        '504':
          description: Waktu Tunggu Gateway Habis - Waktu tunggu permintaan habis.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32003
                  message: Waktu tunggu gateway habis
                id: '1'
      security:
        - ApiKeyQuery: []
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        jsonrpc:
          type: string
          description: Versi protokol JSON-RPC.
          enum:
            - '2.0'
          example: '2.0'
        error:
          type: object
          properties:
            code:
              type: integer
              description: Kode kesalahan.
              example: -32602
            message:
              type: string
              description: Pesan kesalahan.
            data:
              type: object
              description: Data tambahan tentang kesalahan tersebut.
        id:
          type: string
          description: Pengidentifikasi yang cocok dengan permintaan.
          example: '1'
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api-key
      description: >-
        Kunci API Helius Anda. Anda dapat memperolehnya secara gratis di
        [dasbor](https://dashboard.helius.dev/api-keys).

````