Skip to main content
POST
/
api
/
v3
/
decode
Decode opcodes and bodies
curl --request POST \
  --url https://toncenter.com/api/v3/decode \
  --header 'Content-Type: application/json' \
  --data '{
  "opcodes": [
    "<string>"
  ],
  "bodies": [
    "<string>"
  ]
}'
{
  "opcodes": [
    "jetton_transfer"
  ],
  "bodies": [
    {
      "type": "jetton_transfer",
      "data": {
        "amount": "1000000000",
        "destination": "0:abcd...",
        "response_destination": null,
        "custom_payload": null
      }
    }
  ]
}

Body

application/json
opcodes
string[]

Opcodes in hex (with or without 0x) or decimal format.

bodies
string[]

Message bodies in base64 or hex format.

Response

OK

opcodes
string[]

Decoded opcode names or identifiers.

bodies
object[]

Decoded message bodies as structured objects (scheme-dependent).

I