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

# Decode opcodes and bodies

> Decode opcodes (hex or decimal) and message bodies (base64 or hex).



## OpenAPI

````yaml get /api/v3/decode
openapi: 3.0.0
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.1.0
servers:
  - url: https://toncenter.com
  - url: https://testnet.toncenter.com/
security: []
paths:
  /api/v3/decode:
    get:
      tags:
        - Utils
      summary: Decode opcodes and bodies
      description: Decode opcodes (hex or decimal) and message bodies (base64 or hex).
      parameters:
        - in: query
          name: opcodes
          description: List of opcodes to decode (hex or decimal).
          required: false
          schema:
            type: array
            items:
              type: string
          style: form
          explode: true
        - in: query
          name: bodies
          description: List of message bodies to decode (base64 or hex).
          required: false
          schema:
            type: array
            items:
              type: string
          style: form
          explode: true
      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:
        opcodes:
          type: array
          items:
            type: string
          description: Decoded opcode names or identifiers.
        bodies:
          type: array
          items:
            type: object
            additionalProperties: true
          description: Decoded message bodies as structured objects (scheme-dependent).
      example:
        opcodes:
          - jetton_transfer
        bodies:
          - type: jetton_transfer
            data:
              amount: '1000000000'
              destination: 0:abcd...
              response_destination: null
              custom_payload: null
    RequestError:
      type: object
      properties:
        code:
          type: integer
        error:
          type: string

````