Returns the block information for 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 block information for 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_info() -> Box
use starknet::get_block_info;
let block_info = get_block_info().unbox();
let block_number = block_info.block_number;
let block_timestamp = block_info.block_timestamp;
let sequencer = block_info.sequencer_address;
Was this page helpful?