Skip to content

Commit

Permalink
update with new clarity 3 info
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwaits committed Oct 25, 2024
1 parent a367ece commit 1c54752
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions content/docs/stacks/clarity/functions/get-block-info.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ title: get-block-info?
description: Fetching information about Stacks blocks in Clarity smart contracts.
---

<Callout>
In Clarity 3, this function is being deprecated for [`get-stacks-block-info?`](/stacks/clarity/functions/get-stacks-block-info).
</Callout>

## Function Signature

```clarity
Expand Down
11 changes: 11 additions & 0 deletions content/docs/stacks/nakamoto/guides/clarinet.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,14 @@ epoch = 3.0

Start devnet with `clarinet devnet start`, you should see epoch 3.0 and fast blocks at Bitcoin
block 144.

<Callout title="New Clarity keywords">
Clarity 3 introduces two new keywords after the Nakamoto hard fork:

- `tenure-height`: Returns the number of tenures passed.
- `stacks-block-height`: Returns the current Stacks block height.

Note: `block-height` is deprecated.

For more details on these and other Clarity keywords, see the [Clarity Keywords Reference](https://docs.stacks.co/reference/keywords).
</Callout>

0 comments on commit 1c54752

Please sign in to comment.