Replies: 2 comments 2 replies
-
Could you please clarify which RPC endpoint you are using to obtain your data and which network you are querying? |
Beta Was this translation helpful? Give feedback.
-
A related question to that, is 25 gwei as base fee a static value ? If not, what would be the trigger for it to increase ? For example, does block space usage (gas used / 15 M total gas limit per block) has any impact on the base fee ? My understanding is, 25 gwei is the base minimum to have a tx included in a block eventually. Paying anything above that would put your tx in front of the queue but if the block space utilization is low (like 10 percent etc), it actually doesnt make sense to pay anything more than 25 gwei. Does this make sense ? PS: Here a user would pay 45 gwei but there is still a margin of 30 gwei, remaining from MaxFeePerGas - (MaxPriorityFee + BaseFee ). This 30 gwei is refunded but if 25 gwei base fee was static, no one would have needed this margin at all, doing BaseFee + MaxPriorityFee = MaxFeePerGas would have sufficed. So i suppose BaseFee is not static and might increase. My question again is, how is this calculated/estimated ? |
Beta Was this translation helpful? Give feedback.
-
we are working on a feature where our frontend displays an adjustable gas price pop up. The idea is super simple, we try to detect if the fees are higher than common 25 gwei and if it is we give our users the option to set their gas fees manually, for testing purposes we set this to 40 gwei.
The issue is, rpc nodes never seem to return anything other than 25 gwei. I have written a simple script to fetch gas fee data with ethers.js and over the course of 8 hours, it has only gotten 25 gwei and nothing else. Is this some hardcoded value on the rpc node level ?
Do you have any suggestions on how to fetch the current gas price ? We need a reliable way of tracking the last block's gas price so we can adjust accordingly.
Beta Was this translation helpful? Give feedback.
All reactions