pub fn block_index() -> BlockHeight
Current block index.
use near_sdk::env::block_index; assert_eq!(block_index(), 0);