How to Use TONX Lab API

At TONX Lab, we develop powerful tools through the TONX API, specifically designed for TON developers.

As a team actively building real use cases in the TON ecosystem, we understand the challenges and complexities of the TON API development process. Our aim is to reduce these difficulties, which is why TONX Lab APIs were created.
As core development tools for the TON blockchain, TONX Lab APIs are designed to make TON development smoother, more efficient, and less cumbersome.

1. BoC Parsing Tools

The Bag of Cells (BoC) is a format used to serialize cells into byte arrays. In TON, everything is composed of cells—contract code, stored data, blocks—providing streamlined and robust flexibility in the development process. Our BoC parsing tool helps you determine whether your BoC is valid and ready to use, allowing you to check it before sending any messages to the chain.

2. BoC Status API

TON operates as an asynchronous chain, making it complex to handle different messages simultaneously. To simplify this process, we’ve developed the BoC Status API, which lets you easily check whether a BoC has completed successfully or failed. If an error occurs, it may indicate that another issue is causing the failure.

3. Radix Conversion

Using Radix Conversion API, you can do number base conversion painlessly even dealing with big integers such as block shard identifier.

For example

{
  "number": "9223372036854775808",
  "base": "10"
}
↓
{
  "binary": "1000000000000000000000000000000000000000000000000000000000000000",
  "decimal": "9223372036854775808",
  "hexadecimal": "8000000000000000"
}

4. Binary Conversion

Are you tired of switching different format with respect to the same content?
It’s time to try our Binary Conversion API.

For example

{
  "hexadecimal": "71dc29ed70c388ba09517cf004461132e3509c405b743a25c577de388cc9b35b"
}
↓
{
  "base64": "cdwp7XDDiLoJUXzwBEYRMuNQnEBbdDolxXfeOIzJs1s=",
  "base64url": "cdwp7XDDiLoJUXzwBEYRMuNQnEBbdDolxXfeOIzJs1s=",
  "hexadecimal": "71dc29ed70c388ba09517cf004461132e3509c405b743a25c577de388cc9b35b",
  "crc16_xmodem": "24a1",
  "crc32_iso_hdlc": "cc0e7f0e",
  "sha256": "5f192d96f5ff1e4c353cac403c1d31c76a17fdeaabd614d6e49062ebd82d23b3",
  "sha512": "85f74b0dc03db0f78a9b3063ebe39effb7547bf9e63e87ef0e8ab6a94f477894ce221340b632c70ed57de5632638034fcd6ed12ac7b16b26e6112c315b95377b",
  "blake2b": "e23f7709779e663ad882481dd0c77d2fab56fd9890bc7a4ba135259525ed02382cdd4da772520876e3785273af1924877e9c4a0db6b195d81cf348992b876214",
  "keccak256": "41f2822a35fd64e1079776ad604431c0c2c386b16a7a3785df0cd078a52ec4d4",
  "keccak512": "8300e2fca58ace85e86a641a5261edcd7f11c6d2bc7af20a505cd39510582ccdf235470b3c980e139466bef8da8a196086c3617d37f269a62b9bfe8894bc7155"
}

5.Detect Address

To reduce the risk of sending coins to wrong addresses, there are several address representations to the same account. It is a good protection mechanism for users but might be tedious routine for developers to check address validities every time. However, if you choose Detect Address API, you will get the detailed information behind the address-like string.

Alright! TONX Lab API will come out more useful TON APIs that would fit your needs.

If you have any questions, don’t hesitate to let us know how you feel about these APIs.

To feedback, you can write to [email protected]

Also you could follow our TG to get the latest product update. t.me/tonxapi