Skip to content

Provide total tokens staked through Token API #754

Description

@bobo-k2

Motivation
It would be very useful to have historical information about staked amounts on the portal dashboard page. This is the second ticket in series of tickets related to adding total staked ASTR/SDN on the dashboard page.
Depends on #753

Suggested Solution
Create a new endpoint /api/v1/:network/dapps-staking/staked/:period on [Token API service](https://github.com/AstarNetwork/astar-token-api). The endpoint should fetch tokens staked data from deployed indexer (see #753) GraphQL endpoint and provide results in form:

[timestamp, staked_value][]

Alternatives
Not at the moment. Any ideas are welcome.

Additional Information
Please comment if the ticket is not clear enough.

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