TON DocsTON Docs
OnboardingNodesApplicationsAPIsContractsSmart contractsTolkTolk languageTVMTON Virtual MachineFoundationsBlockchain foundations

Decode opcodes and bodies (POST)

POST
/api/v3/decode

Decode opcodes and message bodies. Opcodes can be in hexadecimal (with or without the 0x prefix) or decimal format. Bodies can be in base64 or hexadecimal format. Use POST for long parameters that may be truncated in GET requests.

Authorization

X-API-Key<token>

API key header of the form X-API-Key: <token>, where <token> is the API key. Requests without a key are limited to 1 RPS. Refer to the authentication guide for details.

In: header

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"
}