Skip to main content

TON blockchain limits

This document contains the current limits and metrics used in the TON blockchain.

info

You can check all the blockchain parameters live in the explorer:Tonviewer or Tonscan.

Parameters defined in the code can be found in the source code repository.

Message and transaction limits

NameDescriptionValueTypeDefined in
max_sizeMaximum external message size in bytes65535uint32mc-config.h
max_depthMaximum external message depth512uint16mc-config.h
max_msg_bitsMaximum message size in bits2097152uint32mc-config.h
max_msg_cellsMaximum number of cells a message can occupy8192uint32mc-config.h
max_vm_data_depthMaximum cell depth in messages and c4 & c5 registers512uint16mc-config.h
max_actionsMaximum amount of actions256uint32transaction.h
max_library_cellsMaximum number of library cells in library1000uint32mc-config.h
max_acc_state_cellsMaximum number of cells that an account state can occupy65536uint32mc-config.h
max_acc_state_bitsMaximum account state size in bits67043328uint32cells x size
max_acc_public_librariesMaximum amount of public libraries for account256uint32mc-config.h

Gas and fee parameters

NameDescriptionValueTypeDefined in
free_stack_depthStack depth without gas consumption32enum_valuevm.h
runvm_gas_priceVM start gas consumption40enum_valuevm.h
flat_gas_limitGas below flat_gas_limit is provided at price of flat_gas_price100uint64config21
flat_gas_priceCosts of launching the TON Virtual Machine40000uint64config21
gas_pricePrice of gas in the network in nanotons per 65536 gas units26214400uint64config21
special_gas_limitLimit on gas for special (system) contract transactions1000000uint64config21
gas_limitMaximum amount of gas per transaction1000000uint64config21
gas_creditGas credit for checking external messages10000uint64config21
block_gas_limitMaximum gas per block10000000uint64config21

Storage fees and limits

NameDescriptionValueTypeDefined in
freeze_due_limitStorage fees (nanoTON) for contract freezing100000000uint64config21
delete_due_limitStorage fees (nanoTON) for contract deletion1000000000uint64config21
bit_price_psStorage price for one bit for 65536 seconds1uint64config18
cell_price_psStorage price for one cell for 65536 seconds500uint64config18

Block size limits

NameDescriptionValueTypeDefined in
bytes_underloadBlock size limit for underload state131072uint32config23
bytes_soft_limitBlock size soft limit524288uint32config23
bytes_hard_limitAbsolute maximum block size in bytes1048576uint32config23
gas_underloadBlock gas limit for underload state2000000uint32config23
gas_soft_limitBlock gas soft limit10000000uint32config23
gas_hard_limitAbsolute maximum block gas20000000uint32config23
lt_delta_underloadLogical time delta limit for underload state1000uint32config23
lt_delta_soft_limitLogical time delta soft limit5000uint32config23
lt_delta_hard_limitAbsolute maximum logical time delta10000uint32config23

Message forwarding costs

NameDescriptionValueTypeDefined in
lump_priceBase price for message forwarding400000uint64config25
bit_priceCost per 65536 bit of message forwarding26214400uint64config25
cell_priceCost per 65536 cells of message forwarding2621440000uint64config25
ihr_factorFactor for immediate hypercube routing cost98304uint32config25
first_fracFraction for first transition in message route21845uint32config25
next_fracFraction for subsequent transitions in message route21845uint32config25

MasterChain specific parameters

NameDescriptionValueTypeDefined in
mc_bit_price_psStorage price for one bit for 65536 seconds1000uint64config18
mc_cell_price_psStorage price for one cell for 65536 seconds500000uint64config18
mc_flat_gas_limitGas below flat_gas_limit on MasterChain100uint64config20
mc_flat_gas_priceVM launch cost on MasterChain1000000uint64config20
mc_gas_priceGas price on MasterChain655360000uint64config20
mc_special_gas_limitSpecial contract gas limit on MasterChain70000000uint64config20
mc_gas_limitMaximum gas per transaction on MasterChain1000000uint64config20
mc_gas_creditGas credit for checking external messages10000uint64config20
mc_block_gas_limitMaximum gas per MasterChain block2500000uint64config20
mc_freeze_due_limitStorage fees for contract freezing100000000uint64config20
mc_delete_due_limitStorage fees for contract deletion1000000000uint64config20
mc_bytes_underloadBlock size limit for underload state131072uint32config22
mc_bytes_soft_limitBlock size soft limit524288uint32config22
mc_bytes_hard_limitAbsolute maximum block size in bytes1048576uint32config22
mc_gas_underloadBlock gas limit for underload state200000uint32config22
mc_gas_soft_limitBlock gas soft limit1000000uint32config22
mc_gas_hard_limitAbsolute maximum block gas2500000uint32config22
mc_lump_priceBase price for message forwarding10000000uint64config24
mc_bit_priceCost per 65536 bit of message forwarding655360000uint64config24
mc_cell_priceCost per 65536 cells of message forwarding65536000000uint64config24
mc_ihr_factorFactor for immediate hypercube routing cost98304uint32config24
mc_first_fracFraction for first transition in message route21845uint32config24
mc_next_fracFraction for subsequent transitions in route21845uint32config24
mc_lt_delta_underloadLogical time delta limit for underload state1000uint32config22
mc_lt_delta_soft_limitLogical time delta soft limit5000uint32config22
mc_lt_delta_hard_limitAbsolute maximum logical time delta10000uint32config22
mc_catchain_lifetimeMasterChain catchain groups lifetime in seconds250uint32config28

Validator parameters

NameDescriptionValueTypeDefined in
shard_catchain_lifetimeShardChain catchain groups lifetime in seconds250uint32config28
shard_validators_lifetimeShardChain validators group lifetime in seconds1000uint32config28
shard_validators_numNumber of validators in ShardChain validation group23uint32config28
masterchain_block_feeReward for block creation1700000000Gramsconfig14
basechain_block_feeBaseChain block fee1000000000Gramsconfig14

Time parameters

NameDescriptionValueTypeDefined in
utime_sinceInitial Unix timestamp for price application0UnixTimeconfig18