Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop a New Endpoint for Blockchain Activity Metrics #1225

Open
Tracked by #583
SamantaCasal opened this issue Mar 17, 2024 · 1 comment
Open
Tracked by #583

Develop a New Endpoint for Blockchain Activity Metrics #1225

SamantaCasal opened this issue Mar 17, 2024 · 1 comment
Assignees
Labels
api Api component enhancement New feature or request

Comments

@SamantaCasal
Copy link
Collaborator

SamantaCasal commented Mar 17, 2024

Description:

The new endpoint is designed to fetch detailed information about the activity of a specified blockchain or across all blockchains within a certain timeframe.
This endpoint will provide valuable insights into the volume in USD and the number of transactions occurring over user-defined periods.

Query Parameters:

startTime: The start date and time for the query period.
endTime: The end date and time for the query period.
sampleRate: The granularity of the data returned (hours, days, months, years).
chainId: The specific blockchain identifier. If this parameter is not specified, the endpoint should return data for all chains.

Proposed Data Structure:

[
  {
    "chain": "number",
    "time": "date and time",
    "count": "number",
    "volume": "number"
  }
]

Acceptance Criteria:

  1. Endpoint Functionality: The new endpoint must accurately return data based on the specified query parameters, reflecting transaction counts and volumes in USD for the requested blockchain(s) and time period.

  2. Granularity Support: The endpoint should effectively handle requests for different sampleRate values, ensuring data granularity matches the user's request (hourly, daily, monthly, yearly).

  3. Chain Flexibility: If chainId is not specified in the request, the endpoint must compile and return data covering all supported blockchains, allowing for a comprehensive overview of the ecosystem.

  4. Data Accuracy: Ensure the returned transaction counts and volumes are precise and reflective of actual blockchain activities within the specified timeframe.

  5. Performance and Scalability: The implementation should not compromise the backend's performance. Ensure timely responses even when dealing with extensive datasets or covering large time spans.

  6. Documentation: Provide clear and detailed documentation for this new endpoint, including descriptions of query parameters, the format of the response data, and example requests and responses. This documentation will assist developers in effectively utilizing the endpoint.

@SamantaCasal SamantaCasal added api Api component enhancement New feature or request labels Mar 17, 2024
@SamantaCasal SamantaCasal self-assigned this Mar 17, 2024
@SamantaCasal SamantaCasal changed the title Develop a New Endpoint for Specific Blockchain Activity Metrics Develop a New Endpoint for Blockchain Activity Metrics Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Api component enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants