Decode opcodes and message bodies. Opcodes can be in hex (with or without 0x prefix) or decimal format. Bodies should be in base64 or hex format.
cURL
curl --request GET \ --url https://toncenter.com/api/v3/decode
{ "bodies": [ {} ], "opcodes": [ "<string>" ] }
import asyncio from toncenter.rest import ToncenterRestClient from toncenter.types import Network OPCODES = ["0x0f8a7ea5"] async def main() -> None: async with ToncenterRestClient(network=Network.MAINNET) as client: result = await client.v3.utils.get_decode( opcodes=OPCODES, ) print(result.model_dump_json(indent=4)) if __name__ == "__main__": asyncio.run(main())
List of opcodes to decode (hex or decimal)
List of message bodies to decode (base64 or hex)
OK