> ## Documentation Index
> Fetch the complete documentation index at: https://companyname-a7d5b98e-ton-storage.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get smart contract libraries

> Get libraries codes.



## OpenAPI

````yaml get /getLibraries
openapi: 3.1.0
info:
  title: TON HTTP API
  description: >

    This API enables HTTP access to TON blockchain - getting accounts and
    wallets information, looking up blocks and transactions, sending messages to
    the blockchain, calling get methods of smart contracts, and more.


    In addition to REST API, all methods are available through [JSON-RPC
    endpoint](#json%20rpc)  with `method` equal to method name and `params`
    passed as a dictionary.


    The response contains a JSON object, which always has a boolean field `ok`
    and either `error` or `result`. If `ok` equals true, the request was
    successful and the result of the query can be found in the `result` field.
    In case of an unsuccessful request, `ok` equals false and the error is
    explained in the `error`.


    API Key should be sent either as `api_key` query parameter or `X-API-Key`
    header.
  version: 2.0.0
servers:
  - url: https://toncenter.com/api/v2
  - url: https://testnet.toncenter.com/api/v2
security: []
tags:
  - name: Accounts
    description: Information about accounts.
  - name: Blocks
    description: Information about blocks.
  - name: Transactions
    description: Fetching and locating transactions.
  - name: Config
    description: Get blockchain config
  - name: Smart contracts
    description: Run get method of smart contract.
  - name: Messages and Transactions
    description: Send data to blockchain.
  - name: JSON-RPC
    description: JSON-RPC endpoint.
paths:
  /getLibraries:
    get:
      tags:
        - Blocks
      summary: Get smart contract libraries
      description: Get libraries codes.
      operationId: get_libraries_getLibraries_get
      parameters:
        - description: List of base64 encoded libraries hashes
          required: true
          schema:
            type: array
            items:
              type: string
            title: Libraries
            description: List of base64 encoded libraries hashes
          name: libraries
          in: query
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                  result:
                    type: object
                    properties:
                      '@type':
                        type: string
                        example: smc.libraryResult
                      result:
                        type: array
                        items:
                          type: object
                          properties:
                            '@type':
                              type: string
                              example: smc.libraryEntry
                            hash:
                              type: string
                              example: RZuqu83SGYHpN7D/5z+dUoN/hO08EXrRJg1TXsFigAo=
                            data:
                              type: string
                              description: Base64-encoded library data
                      '@extra':
                        type: string
                        example: 1758735556.956807:1:0.731451399868406
                required:
                  - ok
                  - result
              examples:
                sample:
                  summary: Example response
                  value:
                    ok: true
                    result:
                      '@type': smc.libraryResult
                      result:
                        - '@type': smc.libraryEntry
                          hash: RZuqu83SGYHpN7D/5z+dUoN/hO08EXrRJg1TXsFigAo=
                          data: te6ccgECDQEAA4kAART/APSkE/...
                      '@extra': 1758735556.956807:1:0.731451399868406
        '422':
          description: Validation Error
        '504':
          description: Lite Server Timeout
      security: []

````