Hello everyone, does anyone have example of calling estimateExternalMessageFee method? i dont really understand what i should pass in initCode and initData fields

Sep 27, 2023, 2:19 PM
If you aren't initializing contract, likely null.
Sep 27, 2023, 2:20 PM
dont really understand how its works:

body: beginCell().storeUint(653058771, 32).storeUint(111n, 32).storeUint(0,32).endCell()

calculated: 0.000083852

body: beginCell().storeUint(653058771, 32).storeUint(111n, 8).storeUint(0,8).endCell()

calculated: 0.000083852

Why does it costs the same amount of money, if i am writing different amount of data?
Moreover, when i am really calling this method on-chain, it takes much more gas to pay
Sep 27, 2023, 2:34 PM
Do you call it by internal message? If so, you need to estimate fees in different way — likely with sandbox.
Sep 27, 2023, 2:49 PM
like just running tests in sandbox and watching the amount of ton i spent?
but what will happend if gasprice will be bigger?
just trying like that, is that means internal msg?
Sep 27, 2023, 2:54 PM
sandbox can use actual configuration values.
Sep 27, 2023, 3:13 PM
Yep, thanks just checking in sandbox and it's basically almost the same value as it's required in mainnet. TY ❤️
Sep 27, 2023, 3:14 PM
How do you send the message to the contract when not-testing?
Sep 27, 2023, 3:14 PM
using wrapper from generated tact code and tonConnect. basically we didn't know how much value we need to send, so we we're trying to use almost any value. now i know how much i need to send, but for safe purposes i'll send a bit more. like 0.001 TON more than i get from tests
Sep 27, 2023, 3:16 PM

© 2024 Draquery.com All rights reserved.