Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Solidity has access to the remaining gas via msg.gas which changes from line to line. But I would like to know if I can access the initially submitted gasLimit. Is that possible in Solidity?
No, the transaction gas limit is unavailable in Solidity (though the block.gaslimit is). A suggestion is to file an EIP with your use cases and let the community provide input.
Required, but never shown