Skip to main content
This document contains the current limits and configuration parameters used in the TON blockchain. There are two sources of network parameters definitions:
  1. Blockchain config
  2. Node source code
You can check all the blockchain parameters live in the explorers: Tonviewer or Tonscan.Parameters defined in the code can be found in the source code repository.

Message and transaction limits

NameDescriptionValueUnitsTypeDefined in
max_sizeMaximum external message size in bytes65535bytesuint32mc-config.h:392
max_depthMaximum external message depth512levelsuint16mc-config.h:393
max_msg_bitsMaximum message size in bits2097152bitsuint32mc-config.h:395
max_msg_cellsMaximum number of cells a message can occupy8192cellsuint32mc-config.h:396
max_vm_data_depthMaximum cell depth in messages and c4 and c5 registers512levelsuint16mc-config.h:398
max_actionsMaximum number of actions256countuint32transaction.h
max_library_cellsMaximum number of library cells1000cellsuint32mc-config.h:397
max_acc_state_cellsMaximum number of cells that an account state can occupy65536cellsuint32mc-config.h:400
max_acc_state_bitsMaximum account state size in bits67043328bitsuint32mc-config.h:401
max_acc_public_librariesMaximum number of public libraries per account256countuint32mc-config.h:402

Gas and fee parameters

NameDescriptionValueUnitsTypeDefined in
free_stack_depthStack depth without gas consumption32stack entriesenum_valuevm.h:120
runvm_gas_priceVM start gas consumption40gas unitsenum_valuevm.h:122
flat_gas_limitGas below flat_gas_limit is provided at the price of flat_gas_price100gas unitsuint64config21
flat_gas_priceCosts of launching the TON Virtual Machine40000nanotonsuint64config21
gas_pricePrice of gas in the network in nanotons per 65536 gas units26214400nanotonsuint64config21
special_gas_limitLimit on gas for special (system) contract transactions1000000gas unitsuint64config21
gas_limitMaximum amount of gas per transaction1000000gas unitsuint64config21
gas_creditGas credit for checking external messages10000gas unitsuint64config21
block_gas_limitMaximum gas per block10000000gas unitsuint64config21

Storage fees and limits

NameDescriptionValueUnitsTypeDefined in
freeze_due_limitStorage fees (nanotons) for contract freezing100000000nanotonsuint64config21
delete_due_limitStorage fees (nanotons) for contract deletion1000000000nanotonsuint64config21
bit_price_psStorage price for one bit for 65536 seconds1nanotons/bituint64config18
cell_price_psStorage price for one cell for 65536 seconds500nanotons/celluint64config18

Block size limits

NameDescriptionValueUnitsTypeDefined in
bytes_underloadBlock size limit for underload state131072bytesuint32config23
bytes_soft_limitBlock size soft limit524288bytesuint32config23
bytes_hard_limitAbsolute maximum block size in bytes1048576bytesuint32config23
gas_underloadBlock gas limit for underload state2000000gas unitsuint32config23
gas_soft_limitBlock gas soft limit10000000gas unitsuint32config23
gas_hard_limitAbsolute maximum block gas20000000gas unitsuint32config23
lt_delta_underloadLogical time delta limit for underload state1000lt unitsuint32config23
lt_delta_soft_limitLogical time delta soft limit5000lt unitsuint32config23
lt_delta_hard_limitAbsolute maximum logical time delta10000lt unitsuint32config23

Message forwarding costs

NameDescriptionValueUnitsTypeDefined in
lump_priceBase price for message forwarding400000nanotonsuint64config25
bit_priceCost per 65536 bits of message forwarding26214400nanotons/bituint64config25
cell_priceCost per 65536 cells for message forwarding2621440000nanotons/celluint64config25
ihr_factorFactor for immediate hypercube routing cost98304factoruint32config25
first_fracFraction for first transition in message route21845fractionuint32config25
next_fracFraction for subsequent transitions in message route21845fractionuint32config25

MasterChain specific parameters

NameDescriptionValueUnitsTypeDefined in
mc_bit_price_psStorage price for one bit for 65536 seconds1000nanotons/bituint64config18
mc_cell_price_psStorage price for one cell for 65536 seconds500000nanotons/celluint64config18
mc_flat_gas_limitGas below flat_gas_limit on MasterChain100gas unitsuint64config20
mc_flat_gas_priceVM launch cost on MasterChain1000000nanotonsuint64config20
mc_gas_priceGas price on MasterChain655360000nanotonsuint64config20
mc_special_gas_limitSpecial contract gas limit on MasterChain70000000gas unitsuint64config20
mc_gas_limitMaximum gas per transaction on MasterChain1000000gas unitsuint64config20
mc_gas_creditGas credit for checking external messages10000gas unitsuint64config20
mc_block_gas_limitMaximum gas per MasterChain block2500000gas unitsuint64config20
mc_freeze_due_limitStorage fees for contract freezing100000000nanotonsuint64config20
mc_delete_due_limitStorage fees for contract deletion1000000000nanotonsuint64config20
mc_bytes_underloadBlock size limit for underload state131072bytesuint32config22
mc_bytes_soft_limitBlock size soft limit524288bytesuint32config22
mc_bytes_hard_limitAbsolute maximum block size in bytes1048576bytesuint32config22
mc_gas_underloadBlock gas limit for underload state200000gas unitsuint32config22
mc_gas_soft_limitBlock gas soft limit1000000gas unitsuint32config22
mc_gas_hard_limitAbsolute maximum block gas2500000gas unitsuint32config22
mc_lump_priceBase price for message forwarding10000000nanotonsuint64config24
mc_bit_priceCost per 65536 bits of message forwarding655360000nanotons/bituint64config24
mc_cell_priceCost per 65536 cells for message forwarding65536000000nanotons/celluint64config24
mc_ihr_factorFactor for immediate hypercube routing cost98304factoruint32config24
mc_first_fracFraction for first transition in message route21845fractionuint32config24
mc_next_fracFraction for subsequent transitions in route21845fractionuint32config24
mc_lt_delta_underloadLogical time delta limit for underload state1000lt unitsuint32config22
mc_lt_delta_soft_limitLogical time delta soft limit5000lt unitsuint32config22
mc_lt_delta_hard_limitAbsolute maximum logical time delta10000lt unitsuint32config22
mc_catchain_lifetimeMasterChain catchain groups lifetime in seconds250secondsuint32config28

Validator parameters

NameDescriptionValueUnitsTypeDefined in
shard_catchain_lifetimeShardChain catchain groups lifetime in seconds250secondsuint32config28
shard_validators_lifetimeShardChain validators group lifetime in seconds1000secondsuint32config28
shard_validators_numNumber of validators in ShardChain validation group23countuint32config28
masterchain_block_feeReward for block creation1700000000nanotonsGramsconfig14
basechain_block_feeBaseChain block fee1000000000nanotonsGramsconfig14

Time parameters

NameDescriptionValueUnitsTypeDefined in
utime_sinceInitial Unix timestamp for price application0secondsUnixTimeconfig18
I