Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
What is the byte size of a smart contract that can be deployed on TON?

What is the byte size of a smart contract that can be deployed on TON?

This question was imported from Telegram Chat: https://t.me/tondev_eng/26332

Posted one year ago
Howard Peng
10 × 1 Administrator
Votes Newest


The maximum size of a smart contract deployed on the TON Network depends on the complexity of the contract and the number of cells it utilizes. In general, the size of a smart contract's Bag-of-Cells (BoC) representation should not exceed the size limit of a single shardchain block, which is 2 MB. However, practical limits for smart contracts are much smaller.

A single cell in the TON Network can store up to 1023 data bits and has 4 references to other cells. The more complex the smart contract, the more cells it will use. However, there isn't a strict rule regarding the number of cells that a smart contract can have, as it depends on the specific use case and complexity of the contract.

In practice, it's important to keep your smart contract's code as concise and efficient as possible to ensure that it can be deployed and executed efficiently on the network. As long as the smart contract fits within the block size limit and doesn't exceed practical cell usage limitations, it should be deployable on the TON Network.

*2MB based on here:

Posted one year ago
1 Answer
one year ago
one year ago