> For the complete documentation index, see [llms.txt](https://docs.blockxnet.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.blockxnet.com/protocol-developers/modules/feemarket/end-block.md).

# End block

The block\_gas\_used value is updated at the end of each block.

### Block Gas Used <a href="#block-gas-used" id="block-gas-used"></a>

The total gas used by current block is stored in the KVStore at `EndBlock`.

It is initialized to `block_gas` defined in the genesis.
