> ## 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). Use POST for long parameter lists that could be truncated in GET.




## OpenAPI

````yaml post /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:
    post:
      tags:
        - Utils
      summary: Decode opcodes and bodies
      description: >
        Decode opcodes (hex or decimal) and message bodies (base64 or hex). Use
        POST for long parameter lists that could be truncated in GET.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DecodeRequest'
      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:
    DecodeRequest:
      type: object
      properties:
        opcodes:
          type: array
          items:
            type: string
          description: Opcodes in hex (with or without 0x) or decimal format.
        bodies:
          type: array
          items:
            type: string
          description: Message bodies in base64 or hex format.
    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

````