Skip to content

[Debate] Features and responsabilities of the SEBAK API #867

@dahemmer

Description

@dahemmer

I'm creating this issue to debate the features and responsabilities of the SEBAK API.

The SEBAK API provides endpoints to obtain data such as blocks, transactions, operations, accounts, etc. This allows third parties to get the SEBAK blockchain state in real-time.

Third parties currently have two options to query data, through path parameters and through query parameters.

Path parameters

  1. /blocks/{height} returns the block for the provided height
  2. /accounts/{address} returns the account for the provided address
  3. /transactions/{hash} returns the transaction for the provided hash

Query parameters

  1. limit=x returns x amount of records
  2. reverse=x sorts data in x order
  3. cursor=x returns data starting from cursor x

While these options allow third parties to retrieve specific information, they don't provide many ways to query the data. If a third party for example wants to obtain all accounts having a balance > 10000 BOS, then there is no way to actually to retrieve this data through the use of the SEBAK API. This is just one example, but the possibilities could be endless as far as querying options are concerned.

Will the SEBAK API ever expose endpoints and query parameters for statistical purposes and data analysis? Would that be considered as a (future) responsability of the SEBAK API?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions