Skip to main content
GET
/
api
/
v3
/
decode
Decode opcodes and bodies
curl --request GET \
  --url https://toncenter.com/api/v3/decode
{
  "bodies": [
    {}
  ],
  "opcodes": [
    "<string>"
  ]
}

Query Parameters

opcodes
string[]

List of opcodes to decode (hex or decimal)

bodies
string[]

List of message bodies to decode (base64 or hex)

Response

Decoded opcodes and message bodies.

Response from the decode endpoint containing decoded opcode names and parsed message body structures.

bodies
object[]

Array of decoded message bodies. Each entry is a structured object with the decoded opcode name and parsed payload fields. Entries that could not be decoded return the raw data.

opcodes
string[]

Array of decoded opcode names corresponding to the input opcodes. Unknown opcodes return the original value unchanged.