Calculating the gas price for
get/set operations on a Hashmap in the TON Virtual Machine (TVM) can be a bit challenging, as it is
dynamic and depends on
the size of the dictionary being manipulated.
Although there is no exact formula for determining the gas price, you can estimate it using the following approach:
Gas Price ≈ 600 * log2(SIZE)
SIZE represents the size of the dictionary. The gas price obtained using this formula is in the gas value unit, which means it is measured in
microTONs (10^-6 TON).
Please note that this estimation is based on tests and may not be fully accurate for all cases.
Gas prices can vary depending on several factors, including the complexity of the smart contract, the size of the dictionary, and the specific operations being performed. To obtain a more accurate estimation, it is recommended to test and analyze the gas consumption of your smart contract under different conditions.