> ## Documentation Index
> Fetch the complete documentation index at: https://toncenter.ness.su/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Decode

> Decode opcodes and message bodies. Opcodes can be in hex (with or without 0x prefix) or decimal format. Bodies should be in base64 or hex format.



## OpenAPI

````yaml GET /api/v3/decode
openapi: 3.0.3
info:
  description: >-
    TON Index collects data from a full node to PostgreSQL database and provides
    convenient API to an indexed blockchain.
  title: TON Index (Go)
  contact: {}
  version: 1.2.6
servers:
  - url: https://toncenter.com
    description: Mainnet
  - url: https://testnet.toncenter.com
    description: Testnet
security: []
paths:
  /api/v3/decode:
    get:
      tags:
        - utils
      summary: Decode Opcodes and Bodies
      description: >-
        Decode opcodes and message bodies. Opcodes can be in hex (with or
        without 0x prefix) or decimal format. Bodies should be in base64 or hex
        format.
      operationId: api_v3_get_decode
      parameters:
        - name: opcodes
          in: query
          description: List of opcodes to decode (hex or decimal)
          schema:
            type: array
            items:
              type: string
        - name: bodies
          in: query
          description: List of message bodies to decode (base64 or hex)
          schema:
            type: array
            items:
              type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DecodeResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RequestError'
components:
  schemas:
    DecodeResponse:
      type: object
      properties:
        bodies:
          type: array
          items:
            type: object
            additionalProperties: true
        opcodes:
          type: array
          items:
            type: string
    RequestError:
      type: object
      properties:
        code:
          type: integer
        error:
          type: string

````