Skip to content

rc3 changes

There will be quite a lot of changes when api.syncad.com and api.hive.blog will be updated - few of them will break FE - minor changes easy to fix, I'll try to list them but I might be missing something

HAFAH:

  1. account-history (list of ops on account-page) - It's been completely rewritten - i tried to make the filtering by block-range a bit faster, its not perfect but its faster that previous version no changes to result

  2. /global-state API https://gitlab.syncad.com/hive/HAfAH/-/blob/develop/postgrest/hafah_REST/other/get_block.sql#L55

              "total_vesting_fund_hive": "149190428013",
              "total_vesting_shares": "448144916705468350",
              "total_reward_fund_hive": "66003975",
              "virtual_supply": "161253662237",
              "current_supply": "157464400971",
              "current_hbd_supply": "2413759427",

integers in these values are in string now - json shortened some values

btracker/reptracker:

  1. new apis /version and /last-synced-block in these apps - you might want to use it somewhere - I don't know

hafbe:

  1. /input-type/ - unified result in "input_value", always return string array https://gitlab.syncad.com/hive/haf_block_explorer/-/blob/develop/endpoints/other/get_input_type.sql?ref_type=heads#L40

it is a change to unify the result and typization

  1. /operation-type-counts- ops_count object renamed to operations (to unify the returned object with blocksearch)

https://gitlab.syncad.com/hive/haf_block_explorer/-/blob/develop/endpoints/other/get_latest_blocks.sql?ref_type=heads#L60

  1. /witnesses/blocktrades/voters renamed total_operations to total_votes in votes history API

https://gitlab.syncad.com/hive/haf_block_explorer/-/blob/develop/endpoints/witnesses/get_witness_voters.sql?ref_type=heads#L82

  • it was just a ctrl +c ctrl +v error
  1. /witnesses renamed total_operations to total_witnesses in witnesses API

https://gitlab.syncad.com/hive/haf_block_explorer/-/blob/develop/endpoints/witnesses/get_witnesses.sql?ref_type=heads#L95

  • it was just a ctrl +c ctrl +v error
  1. /accounts/{account-name}

https://gitlab.syncad.com/hive/haf_block_explorer/-/blob/develop/endpoints/accounts/get_account.sql?ref_type=heads#L63

its array of text instead of array of int - there was json shortening here too

  1. /accounts/{account-name}/comment-permlinks

from our previous discussion about the permlinks - I've rewritten the api in similar way to blocksearch filters - now it uses block-range object that needs to be utilized in paging mechanism

https://gitlab.syncad.com/hive/haf_block_explorer/-/blob/develop/endpoints/accounts/get_comment_permlinks.sql?ref_type=heads#L101

I think this is only big change - you can call for WHOLE RANGE (instead of the last 30 days) but the response returns ONLY 10 pages (more can be generated if block-range object is utilized correctly)

https://gitlab.syncad.com/hive/haf_block_explorer/-/blob/develop/endpoints/accounts/get_comment_permlinks.sql?ref_type=heads#L30

When first iteration of this API was introduced, I suggested to use post in comment-type as default, but from now on it should be changed to all.

The performance is now much better for all types and the all should be the default (post was only due to performance reasons).

Edited by Michal Zander