Gas fees recommendation/estimation #6170
-
Hi good day, My task has created an API that executes Lotus CLI and returns Gas fees recommendation/estimation, but without inputting any Message information it only depends on network congested/traffic. Sorry, Does anyone know how can I achieve this or does even posssible? I don't know what should I do, Gas fees computation kind a complicated for me. API expected Request params/body API expected return values |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
gas used * baseFee = burn fee those two ultimately define the cost of a message. you do not know gas used before the message is executed and you do not know the baseFee either. all you can do is take historic values (gas used per message type for example) and make educated guesses - that the api returns you is the result of a local test run of the message not a final value |
Beta Was this translation helpful? Give feedback.
gas used * baseFee = burn fee
perium * baseFee = miner fee
those two ultimately define the cost of a message.
you do not know gas used before the message is executed and you do not know the baseFee either. all you can do is take historic values (gas used per message type for example) and make educated guesses - that the api returns you is the result of a local test run of the message not a final value