hirosystems / stacks-blockchain-api

API for the Stacks blockchain
https://stacks-blockchain-api.vercel.app
GNU General Public License v3.0
171 stars 108 forks source link

feat: add burn_block_height to Rosetta endpoints #1974

Closed zone117x closed 1 month ago

zone117x commented 1 month ago

Closes https://github.com/hirosystems/stacks-blockchain-api/issues/1972

Adds to the /rosetta/v1/block response:

{
  block: {
    metadata: {
      burn_block_height: <bitcoin_block_height>
    }
  }
}

And to the /rosetta/v1/network/status response:

{
  current_burn_block_height: <bitcoin_block_height>
}
github-actions[bot] commented 1 month ago

Vercel deployment URL: https://stacks-blockchain-jkt98xwot-blockstack.vercel.app :rocket:

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 72.37%. Comparing base (3e2d524) to head (3b68c38). Report is 1 commits behind head on develop.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #1974 +/- ## =========================================== - Coverage 72.40% 72.37% -0.03% =========================================== Files 94 94 Lines 12572 12573 +1 Branches 2930 2872 -58 =========================================== - Hits 9103 9100 -3 - Misses 3306 3455 +149 + Partials 163 18 -145 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

blockstack-devops commented 1 month ago

:tada: This PR is included in version 7.11.0-beta.7 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

blockstack-devops commented 3 weeks ago

:tada: This PR is included in version 7.11.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: