Skip to content

@receipts:block.gasLimit

Gas limit of a sealed block, addressed by number or tag (default: latest).

On-chain (@receipts:block.gasLimit!): Reads the block being written, and takes no arguments.

⚗️ Experimental — available at next.evmcrispr.com.

Returns: number

@receipts:block.gasLimit(block? chain?)
NameTypeDescription
[block]number | stringBlock number or tag (default: latest)
[chain]chainChain to look on (default: current chain)
# Read the gas limit of a sealed block
set $limit @receipts:block.gasLimit(46147 mainnet)

With ! and no arguments the read happens on-chain at assertion time: the gas limit of the block being written.