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

# getBlockTime

> getBlockTime mengembalikan perkiraan waktu produksi blok Solana mana pun sebagai stempel waktu Unix — beri stempel waktu pada slot historis dan buat grafik aktivitas on-chain.



## OpenAPI

````yaml id/openapi/rpc-http/getBlockTime.yaml POST /
openapi: 3.1.0
info:
  title: Solana RPC API
  version: 1.0.0
  description: >-
    API penandaan waktu blockchain untuk mengambil stempel waktu Unix ketika
    blok Solana tertentu diproduksi, sehingga memungkinkan korelasi antara
    peristiwa on-chain dan waktu dunia nyata.
  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: getBlockTime
      description: >
        Konversikan nomor slot blok Solana menjadi stempel waktu dunia nyata
        yang sesuai.

        API korelasi waktu ini mengonversi slot blockchain menjadi stempel waktu
        Unix (detik sejak epoch),

        sehingga memberikan waktu yang tepat ketika blok tertentu diproduksi.
        API ini penting bagi aplikasi yang

        perlu menetapkan hubungan waktu yang presisi antara peristiwa on-chain
        dan waktu dunia nyata,

        termasuk tampilan riwayat transaksi, alat pelaporan keuangan, sistem
        audit, platform analitik

        yang melacak pola temporal, perangkat lunak penghitungan pajak, dan
        aplikasi apa pun yang

        perlu menyajikan aktivitas blockchain dengan tanggal dan waktu umum yang
        mudah dibaca manusia,

        bukan hanya nomor slot teknis.
      operationId: getBlockTime
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - jsonrpc
                - id
                - method
                - params
              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:
                    - getBlockTime
                  description: Nama metode RPC yang akan dipanggil.
                  default: getBlockTime
                params:
                  type: array
                  description: Parameter untuk permintaan.
                  default:
                    - 433000000
                  items:
                    type: integer
                    description: Nomor slot blok yang stempel waktunya akan diambil.
                    example: 5
      responses:
        '200':
          description: Waktu blok berhasil diambil.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                    enum:
                      - '2.0'
                  id:
                    type: string
                  result:
                    type: integer
                    description: >-
                      Stempel waktu Unix (detik sejak epoch Unix) ketika blok
                      Solana tertentu ini diproduksi oleh validator.
                    example: 1574721591
        '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: Invalid params
                id: '1'
        '401':
          description: Tidak Diotorisasi - Kunci API tidak valid atau tidak diberikan.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32001
                  message: Unauthorized
                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: Too many requests
                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: Internal error
                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: Service unavailable
                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: Gateway timeout
                id: '1'
      security:
        - ApiKeyQuery: []
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        jsonrpc:
          type: string
          enum:
            - '2.0'
        error:
          type: object
          properties:
            code:
              type: integer
            message:
              type: string
  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).

````