Skip to content

h6x0r/ton-disassembler4j

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TON VM Disassembler based on Java

License: MIT Based on TON ton4j GitHub last commit

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

Maven Maven Central

<dependency>
    <groupId>io.github.h6x0r</groupId>
    <artifactId>ton-disassembler4j</artifactId>
    <version>2.0.4</version>
</dependency>

Usage

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

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

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

String disassembledInstruction = Disassembler.fromBoc(this.accountStateCode);

Support ton-java development

If you want to speed up ton-java development and thus change its priority in my backlog, you are welcome to donate some toncoins:

UQBcZMSqgAHLsMQ2lOx9GPrBuNYvuzfPvfqAwZot4g82-zXq

Star History

Star History Chart