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

# getSlot

> Mengembalikan slot yang telah mencapai tingkat komitmen yang ditentukan atau tingkat komitmen default.

## Parameter Permintaan

<ParamField body="commitment" type="string">
  Tingkat finalitas untuk mengambil slot (processed = paling cepat, finalized = dikonfirmasi sepenuhnya).

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

<ParamField body="minContextSlot" type="number">
  Slot minimum blockchain Solana yang harus dicapai sebelum memproses permintaan ini.
</ParamField>


## OpenAPI

````yaml id/openapi/rpc-http/getSlot.yaml POST /
openapi: 3.1.0
info:
  title: API RPC Solana
  version: 1.0.0
  description: >-
    API sinkronisasi blockchain untuk mengambil nomor slot jaringan Solana saat
    ini dengan berbagai jaminan finalitas untuk pemantauan waktu nyata dan
    pelacakan progres.
  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: getSlot
      description: >
        Mengambil nomor slot saat ini di blockchain Solana dengan jaminan
        finalitas yang dapat dikonfigurasi.

        API dasar ini menyediakan informasi waktu nyata tentang perkembangan
        jaringan, yang penting untuk

        sinkronisasi, pemantauan, dan pelacakan kemajuan blockchain. Nomor slot
        merepresentasikan

        ketinggian rantai saat ini dan digunakan sebagai acuan untuk penyertaan
        transaksi, waktu blok,

        dan penentuan status finalitas. Sangat penting bagi aplikasi yang perlu
        melacak progres jaringan,

        menentukan status konfirmasi, atau menerapkan logika berbasis waktu
        dengan sinkronisasi blockchain.
      operationId: getSlot
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                jsonrpc:
                  type: string
                  enum:
                    - '2.0'
                  description: Versi protokol JSON-RPC.
                  example: '2.0'
                  default: '2.0'
                id:
                  type: string
                  description: Pengidentifikasi unik untuk permintaan.
                  example: '1'
                  default: '1'
                method:
                  type: string
                  enum:
                    - getSlot
                  description: Nama metode RPC yang akan dipanggil.
                  example: getSlot
                  default: getSlot
                params:
                  type: array
                  description: Objek konfigurasi opsional.
                  default: []
                  items:
                    type: object
                    properties:
                      commitment:
                        type: string
                        description: >-
                          Tingkat finalitas untuk mengambil slot (processed =
                          paling cepat, finalized = dikonfirmasi sepenuhnya).
                        enum:
                          - confirmed
                          - finalized
                          - processed
                        example: finalized
                      minContextSlot:
                        type: integer
                        description: >-
                          Slot minimum blockchain Solana yang harus dicapai
                          sebelum memproses permintaan ini.
                        example: 1000
      responses:
        '200':
          description: Berhasil mengambil slot saat ini.
          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 sesuai dengan permintaan.
                    example: '1'
                  result:
                    type: integer
                    description: >-
                      Nomor slot blockchain Solana saat ini yang
                      merepresentasikan ketinggian dan progres jaringan.
                    example: 1234
              examples:
                getSlotExample:
                  $ref: '#/components/examples/getSlotResponse'
        '400':
          description: >-
            Permintaan Tidak Valid - 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 tersedia.
          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:
  examples:
    getSlotResponse:
      value:
        jsonrpc: '2.0'
        id: '1'
        result: 1234
  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.
        id:
          type: string
          description: Pengidentifikasi yang sesuai 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).

````