Returns the number of the current block.Documentation Index
Fetch the complete documentation index at: https://docs.starknet.io/llms.txt
Use this file to discover all available pages before exploring further.
Returns the number of the current block.Documentation Index
Fetch the complete documentation index at: https://docs.starknet.io/llms.txt
Use this file to discover all available pages before exploring further.
pub fn get_block_number() -> u64
use starknet::get_block_number;
let block_number = get_block_number();
Was this page helpful?