Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1009 Bytes

README.md

File metadata and controls

36 lines (25 loc) · 1009 Bytes

TON VM Disassembler based on Java

Provides Fift-like code from smart contract source. Latest Tonlib libraries can be found here.

Maven Maven Central

<dependency>
    <groupId>io.github.neodix42</groupId>
    <artifactId>disassembler</artifactId>
    <version>0.9.0</version>
</dependency>

Usage

Tonlib tonlib=Tonlib.builder()
        .testnet(false)
        .ignoreCache(false)
        .build();

        Address address=Address.of(addr);
        FullAccountState accountState=this.tonlib.getAccountState(address);

        byte[]accountStateCode=Utils.base64ToBytes(accountState.getAccount_state().getCode());

        String disassembledInstruction=Disassembler.fromBoc(accountStateCode);