Get block number
Get block number

Values · Reads onchain state

Returns the number of the block this plug executes in. It is the chain height at execution, useful as a monotonic counter. Reach for it to stamp a stored record, to key storage by block, or to require a minimum number of blocks has passed since a stored earlier value.

Takes nothing — it reads the caller's own position.