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.


What I need is to specify a limit in my codebase for transfers of MATIC and tokens only. There won’t be any calls to smart-contracts. What number should I put there?

  • subversive_dev@lemmy.ml
    link
    fedilink
    English
    arrow-up
    1
    ·
    8 months ago

    “gas” is the variable transaction fee charged by the network itself. If you’re not careful it can balloon out of control during high network load.

    My guess is that Polygon won’t attempt transactions if the current gas fee is over their limit