0

In Ethereum the gasLimit is 21000. The constant.

I haven't found anywhere the value of it for Polygon, though. How much is it? For a token as well as for MATIC itself.

I've found the number 57000 on an explorer in a real TX. Yet I haven't been able to find a confirmation for it elsewhere.

kriss100
  • 3
  • 2

1 Answers1

0

The gas usage for simple transactions like transferring of native tokens on Ethereum as well as Polygon remain 21000 gas units mostly, but it can increase during periods of high network congestion.

However, you can specify any gasLimit as long as it's within the constraints of the block gas limit, as transactions must fit within the block gas limit to be included in a block. You can read more about this from here:

https://ethereum.stackexchange.com/a/161698/91017

So, if you specify the gasLimit as 21000 (or don't specify at all, as it's the default) for transferring of ether (i.e., native token), then it'll utilise 100% of that as gas usage. Like this:

enter image description here

And, if you specify the higher gasLimit (say 50000), then most of the times, it'll utilise only 21000 (unless there's some network congestion, high usage or so), and the remaining gas will be refunded to you, like this:

enter image description here

SYED ASAD KAZMI
  • 777
  • 2
  • 16
  • you've mentioned Ether. Does that work in Polygon the same way, though? In Polygon it's a dynamic value, whereas in Ethereum a static one – kriss100 Mar 19 '24 at 13:15
  • Ether means native token, which means ETH in case of Ethereum and MATIC in case of Polygon. Please read the explanation carefully, it's not static, neither in Ethereum nor in Polygon. Also, the transaction screenshots attached are of Polygon only. – SYED ASAD KAZMI Mar 19 '24 at 13:52
  • Is 21000 in Ethereum not static? – kriss100 Mar 19 '24 at 20:05
  • @kriss100, this might help: https://ethereum.stackexchange.com/a/92433/91017. – SYED ASAD KAZMI Mar 20 '24 at 10:00