Skip to main content
GET
/
api
/
v3
/
decode
Decode opcodes and bodies
curl --request GET \
  --url https://toncenter.com/api/v3/decode
{
  "opcodes": [
    "jetton_transfer"
  ],
  "bodies": [
    {
      "type": "jetton_transfer",
      "data": {
        "amount": "1000000000",
        "destination": "0:abcd...",
        "response_destination": null,
        "custom_payload": null
      }
    }
  ]
}

Query Parameters

opcodes
string[]

List of opcodes to decode (hex or decimal).

bodies
string[]

List of message bodies to decode (base64 or hex).

Response

OK

opcodes
string[]

Decoded opcode names or identifiers.

bodies
object[]

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

I