# Current block # in starknet?

**URL:** <https://community.starknet.io/t/current-block-in-starknet/756>\
**Category:** Support\
**Created:** [March 1, 2022, 1:31am UTC](https://community.starknet.io/t/current-block-in-starknet/756 "2022-03-01T01:31:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bowlofchilli](https://dub1.discourse-cdn.com/flex005/user_avatar/community.starknet.io/bowlofchilli/32/73368_2.png) [@bowlofchilli](https://community.starknet.io/u/bowlofchilli)\
**Post date:** [March 1, 2022, 1:31am UTC](https://community.starknet.io/t/current-block-in-starknet/756/1 "2022-03-01T01:31:57Z")

</div>

is there a way to get current block # in starknet in a smart contract code?

---

<div class="post-metadata">

**Author:** ![lior-stark](https://dub1.discourse-cdn.com/flex005/user_avatar/community.starknet.io/lior-stark/32/14_2.png) [@lior-stark](https://community.starknet.io/u/lior-stark)\
**Post date:** [March 1, 2022, 9:26am UTC](https://community.starknet.io/t/current-block-in-starknet/756/2 "2022-03-01T09:26:51Z")

</div>

You have a syscall for getting the current block number.  
See [here](https://www.cairo-lang.org/docs/hello_starknet/more_features.html#block-number-and-timestamp).
