Skip to content

update consensus/blocks?height= endpoint

420coupe requested to merge 420coupe/ScPrime:master into master

MERGE REQUEST

Overview

updated api endpoint consensus/blocks?height= to include block target, merkleroot, totalcoins, hashrate, minerpayout's SiacoinOutputIDs. Other endpoint can be killed off (consensus/blocks/:id)

also added txtype to consensus/blocks/:id

Example for Visual changes (ie Screenshot)

consensus/blocks/:id(159773) image consensus/blocks?height/id= image

Issues Closed

Checklist

Review and complete the checklist to ensure that the MR is complete before assigned to an approver.

  • All new methods, or updating methods have clear docstrings
  • Testing added or updated for new methods
  • Any new packages are added to Makefile and .gitlab-ci.yml
  • API documentation updated for API updates
  • Module README.md updated for changes to work flow
  • Issue added to ScPrime-UI repo for new supporting features
Edited by 420coupe

Merge request reports