Decode opcodes (hex or decimal) and message bodies (base64 or hex). Use POST for long parameter lists that could be truncated in GET.
cURL
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 } } ] }
Opcodes in hex (with or without 0x) or decimal format.
Message bodies in base64 or hex format.
OK
Decoded opcode names or identifiers.
Decoded message bodies as structured objects (scheme-dependent).