
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
@tact-lang/opcode
Advanced tools
A decompiler for The Open Network Virtual Machine (TVM) bytecode to Fift assembly.
yarn add @tact-lang/opcode
For most cases you will want to disassemble a BoC file generated by the Tact/FunC/Tolk compiler. In this case decompiler will unpack the dictionary to procedures and methods.
import {AssemblyWriter, disassembleRoot} from "@tact-lang/opcode"
// Disassemble a source file into a program AST
const program = disassembleRoot(source, {
computeRefs: false,
})
// Write the program AST into a Fift assembly string
const res = AssemblyWriter.write(program, {})
console.log(res)
If you want to decompile BoC file without unpacking of the dictionary, you can do the following:
import {AssemblyWriter, disassembleRawRoot} from "@tact-lang/opcode"
const program = disassembleRawRoot(source)
const res = AssemblyWriter.write(program, {})
console.log(res)
If you want to disassemble a single Cell into an array of opcodes, you can do the following:
import {disassemble} from "@tact-lang/opcode"
const opcodes = disassemble({source: cell})
MIT
[0.3.2] - 2025-06-11
Bump @ton/sandbox
from 0.32.1 to 0.32.2.
FAQs
TVM BoC disassembler
The npm package @tact-lang/opcode receives a total of 5,541 weekly downloads. As such, @tact-lang/opcode popularity was classified as popular.
We found that @tact-lang/opcode demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.