BlockInfo
Information about the current block.
Fully qualified path: core::starknet::info::BlockInfo
#[derive(Copy, Drop, Debug, Serde)]
pub struct BlockInfo {
pub block_number: u64,
pub block_timestamp: u64,
pub sequencer_address: ContractAddress,
}
Members
block_number
The number, that is, the height, of this block.
Fully qualified path: core::starknet::info::BlockInfo::block_number
pub block_number: u64
block_timestamp
The time at which the sequencer began building the block, in seconds since the Unix epoch.
Fully qualified path: core::starknet::info::BlockInfo::block_timestamp
pub block_timestamp: u64
sequencer_address
The Starknet address of the sequencer that created the block.
Fully qualified path: core::starknet::info::BlockInfo::sequencer_address
pub sequencer_address: ContractAddress