Skip to content
anatol edited this page Jul 13, 2021 · 1 revision

Env::get_Height

Height get_Height();

Returns the current blockchain height

Parameters

  • none

Return value

  • blockchain height, excluding the current block being-interpreted

Notes

Returns the number of previously mined blocks, not including the current block in which this function is called. The shader can read block headers from 1 up to the return value. See get_HdrInfo() and get_HdrFull()

Example

Clone this wiki locally