Tonx Lab Wordmark
parse boc icon

BOC Parsing Tools

More Coming Soon...

parse boc icon
BOC Parsing Tools
For JSON-RPC Request
Know if your BOC request is good to go.

REQUEST

RESULTS

Click Try It! ↗️ to start a request and see the response here!

Frequently Asked Questions

Bag of Cells (BoC) is a format for serializing cells into byte arrays. On TON, everything consists of cells, including contract code, stored data, blocks, achieving streamline and robust flexibility in the process.
what is boc image
If you would like to know more about BOC:

You will need a TONX API key to use this tool.


  • For checking BoC on the mainnet: Ensure that you are using a mainnet API key.
  • For checking BoC on the testnet: Ensure that you are using a testnet API key.

  • How to apply for a TONX API Key: Register for a TONX API account at https://auth.tonxapi.com. Once registered, you can generate the appropriate environment key (mainnet or testnet) that you would like to use. It’s completely free.

    1. The input string is shorter than the required length for a valid BoC.
    2. A valid BoC string must start with 0xB5EE9C72.
    3. The checksum in the input string does not match the actual value.
    4. The input string contains incorrect flag bits.
    5. The number of cells implied by the input string does not match its total length.
    6. The variable type implied by the input string does not match its actual length.
    7. The input string could not be successfully parsed into an array of cells.
    8. The input string contains more than four references or contains invalid references.
    9. The input string does not comply with the rules for a valid BoC (e.g., acyclic references and index of child cell must be larger than parent cell index).