The Stack Overflow podcast is back! Listen to an interview with our new CEO.

New answers tagged

0

There isn't as of yet, but Istanbul (the upcoming hardfork) includes eip-1344, which includes a CHAINID opcode that pushes the chain id to the stack. I assume Solidity will add block.chainId or something similar, or at least add it to Solidity Assembly so that libraries can access it.


Top 50 recent answers are included