Skip to content

Latest commit

 

History

History
57 lines (37 loc) · 1.84 KB

README.md

File metadata and controls

57 lines (37 loc) · 1.84 KB

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