Returns the timestamp 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 timestamp 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_timestamp() -> u64
use starknet::get_block_timestamp;
let block_timestamp = get_block_timestamp();
Was this page helpful?