Skip to content

[Clarity2] Get burn-block-height #2784

Description

@friedger

Is your feature request related to a problem? Please describe.
In my smart contract, I would like to determine during which cycle a bitcoin transaction happened. This is to calculate the payout for stacking pool rewards.

Describe the solution you'd like
extend the function get-block-info? to return the burn block height:
(get-block-info? burn-block-height height)

Describe alternatives you've considered
Use (get-burn-block-info?...) with the block hash. This is not a good solution because the 2nd parameter should be the burn-block-height as discussed in #2663

Additional context
Required for autonomous Stacking Pools: stacksgov/grants-program#121

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions