Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 956 Bytes

File metadata and controls

36 lines (25 loc) · 956 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>org.ton.ton4j</groupId>
    <artifactId>disassembler</artifactId>
    <version>2.1.0</version>
</dependency>

Usage

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

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

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

String disassembledInstruction = Disassembler.fromBoc(accountStateCode);