TON DocsTON Docs
APIsTON CenterUtils

Decode Opcodes and Bodies

POST
/api/v3/decode

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. Use POST method for long parameters that may be truncated in GET requests.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/v3/decode" \  -H "Content-Type: application/json" \  -d '{}'
{
  "bodies": [
    {}
  ],
  "opcodes": [
    "string"
  ]
}
{
  "code": 0,
  "error": "string"
}