pub fn height() -> u32
Get the current block height.
use std::block::height; fn foo() { let current_height = height(); log(current_height); }