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

# getAccountInfo

> Mengembalikan semua informasi yang terkait dengan akun dari Pubkey yang diberikan.

<Info>
  **Fitur Baru**: `getAccountInfo` kini mendukung parameter `changedSinceSlot` untuk pembaruan inkremental. Jika ditentukan, metode ini hanya mengembalikan akun yang telah diubah pada atau setelah nomor slot yang diberikan. Untuk akun yang ada tetapi belum berubah sejak slot yang ditentukan, respons akan berisi `status: "unchanged"`.
</Info>

## Parameter Permintaan

<ParamField body="pubkey" type="string" required>
  Pubkey akun yang akan dikueri, sebagai string yang dienkode dengan base-58.
</ParamField>

<ParamField body="commitment" type="string">
  Tingkat commitment untuk kueri.

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

<ParamField body="encoding" type="string">
  Format encoding untuk data akun.

  * `base58`
  * `base64`
  * `base64+zstd`
  * `jsonParsed`
</ParamField>

<ParamField body="dataSlice" type="object">
  Meminta potongan data akun.
</ParamField>

<ParamField body="dataSlice.offset" type="number">
  Offset byte untuk mulai membaca.
</ParamField>

<ParamField body="dataSlice.length" type="number">
  Jumlah byte yang akan dikembalikan.
</ParamField>

<ParamField body="minContextSlot" type="number">
  Slot minimum tempat permintaan dapat dievaluasi.
</ParamField>

<ParamField body="changedSinceSlot" type="number">
  Hanya mengembalikan akun jika akun tersebut telah diubah pada atau setelah nomor slot ini. Jika akun ada tetapi belum berubah sejak slot yang ditentukan, respons akan berisi status "unchanged".
</ParamField>


## OpenAPI

````yaml id/openapi/rpc-http/getAccountInfo.yaml POST /
openapi: 3.1.0
info:
  title: API RPC Solana
  version: 1.0.0
  description: >-
    API pengambilan data akun Solana yang komprehensif untuk mengakses
    kepemilikan program, saldo, dan data on-chain dengan beberapa opsi pengodean
    serta tingkat komitmen yang dapat dikonfigurasi.
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
servers:
  - url: https://mainnet.helius-rpc.com
    description: Endpoint RPC Mainnet
  - url: https://devnet.helius-rpc.com
    description: Endpoint RPC Devnet
security: []
paths:
  /:
    post:
      tags:
        - RPC
      summary: getAccountInfo
      operationId: getAccountInfo
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - jsonrpc
                - id
                - method
                - params
              properties:
                jsonrpc:
                  type: string
                  description: Versi protokol JSON-RPC.
                  enum:
                    - '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:
                    - getAccountInfo
                  default: getAccountInfo
                params:
                  type: array
                  default:
                    - 83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri
                  items:
                    oneOf:
                      - title: Pubkey
                        type: string
                        description: >-
                          Pubkey akun yang akan dikueri, sebagai string yang
                          dikodekan dengan base-58.
                        example: 83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri
                      - title: Objek Konfigurasi
                        type: object
                        description: Objek konfigurasi.
                        properties:
                          commitment:
                            type: string
                            description: Tingkat komitmen untuk kueri.
                            enum:
                              - finalized
                              - confirmed
                              - processed
                            example: confirmed
                          encoding:
                            type: string
                            description: Format pengodean untuk data akun.
                            enum:
                              - base58
                              - base64
                              - base64+zstd
                              - jsonParsed
                            example: base58
                          dataSlice:
                            type: object
                            description: Meminta sebagian data akun.
                            properties:
                              offset:
                                type: integer
                                description: Offset byte tempat pembacaan dimulai.
                                example: 0
                              length:
                                type: integer
                                description: Jumlah byte yang akan dikembalikan.
                                example: 64
                          minContextSlot:
                            type: integer
                            description: Slot minimum tempat permintaan dapat dievaluasi.
                            example: 100000000
                          changedSinceSlot:
                            type: integer
                            description: >-
                              Hanya kembalikan akun jika akun telah diubah pada
                              atau setelah nomor slot ini. Jika akun ada tetapi
                              tidak berubah sejak slot yang ditentukan, respons
                              akan berisi status "unchanged".
                            example: 464175999
      responses:
        '200':
          description: Informasi akun berhasil diambil.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                    description: Versi protokol JSON-RPC.
                    example: '2.0'
                  result:
                    type: object
                    properties:
                      context:
                        type: object
                        description: Konteks permintaan.
                        properties:
                          apiVersion:
                            type: string
                            description: Versi API permintaan.
                            example: 2.0.15
                          slot:
                            type: integer
                            description: Nomor slot respons.
                            example: 341197053
                      value:
                        oneOf:
                          - type: object
                            description: Data akun jika akun tersebut ada.
                            properties:
                              lamports:
                                type: integer
                                description: Jumlah lamport yang ditetapkan untuk akun ini.
                                example: 88849814690250
                              owner:
                                type: string
                                description: >-
                                  Pubkey program yang dikodekan dengan base-58
                                  dan ditetapkan untuk akun ini.
                                example: '11111111111111111111111111111111'
                              data:
                                type: array
                                items:
                                  type: string
                                description: >-
                                  Data yang terkait dengan akun, baik sebagai
                                  data biner yang dikodekan maupun dalam format
                                  JSON.
                                example:
                                  - ''
                                  - base58
                              executable:
                                type: boolean
                                description: Menunjukkan apakah akun berisi program.
                                example: false
                              rentEpoch:
                                type: integer
                                description: >-
                                  Epoch saat akun ini selanjutnya harus membayar
                                  biaya sewa.
                                example: 18446744073709552000
                              space:
                                type: integer
                                description: Ukuran data akun.
                                example: 0
                          - type: object
                            description: >-
                              Respons yang hanya memuat status ketika akun ada
                              tetapi tidak berubah sejak slot yang ditentukan.
                            properties:
                              status:
                                type: string
                                description: >-
                                  Status yang menunjukkan bahwa akun tidak
                                  berubah sejak slot yang ditentukan.
                                enum:
                                  - unchanged
                                example: unchanged
                  id:
                    type: integer
                    description: Pengidentifikasi unik yang cocok dengan ID permintaan.
                    example: 1
                  method:
                    type: string
                    description: Metode yang dipanggil.
                    example: getAccountInfo
                  params:
                    type: array
                    description: Parameter untuk permintaan.
                    items:
                      oneOf:
                        - type: string
                        - type: object
                          properties:
                            encoding:
                              type: string
              examples:
                response:
                  value:
                    jsonrpc: '2.0'
                    result:
                      context:
                        apiVersion: 2.0.15
                        slot: 341197053
                      value:
                        lamports: 88849814690250
                        owner: '11111111111111111111111111111111'
                        data:
                          - ''
                          - base58
                        executable: false
                        rentEpoch: 18446744073709552000
                        space: 0
                    id: 1
        '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 ada.
          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 tidak tersedia untuk sementara.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32002
                  message: Layanan tidak tersedia
                id: '1'
        '504':
          description: Batas Waktu Gateway - Waktu permintaan habis.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32003
                  message: Batas waktu gateway
                id: '1'
      security:
        - ApiKeyQuery: []
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        jsonrpc:
          type: string
          description: Versi protokol JSON-RPC.
          enum:
            - '2.0'
          default: '2.0'
        error:
          type: object
          properties:
            code:
              type: integer
              description: Kode kesalahan.
            message:
              type: string
              description: Pesan kesalahan.
        id:
          type: string
          description: Pengidentifikasi unik untuk permintaan.
  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).

````