# get_block_height · FT4 Rell API · Chromia Docs (concept)

> function get_ block_ height(): integer Returns the block height regardless of whether op_context exists.
Returns: 0 if this is the first block block_height

Source: https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.utils/get_block_height/

FUNCTION

# get\_block\_height

```signature
function get_block_height(): integer
```

[Source](https://gitlab.com/chromaway/ft4-lib/-/blob/development/rell/src/lib/ft4/utils/utils.rell#lines-75)

Returns the block height regardless of whether `op_context` exists.
Returns:

* 0 if this is the first block
* `block_height` if `op_context` exists
* last block height + 1 if `op_context` does not exist

[View this page on docs.chromia.com](https://docs.chromia.com/pages/ft4-rell/-f-t4%20-library/lib.ft4.utils/get_block_height.html)Generated API reference, mirrored from the live docs
