Skip to content

Add /api/v1/soroban/contract-calls time-series endpoint #22

Description

@christabel888

Context: Second Soroban Dashboard endpoint, same data source as #21.

Where:

  • src/api/soroban.rs or src/api/contract_events.rs

What to do:

  • Time-series of contract-call (event) count per day from contract_events.

Suggested approach:

  1. Same file as Add /api/v1/soroban/active-contracts endpoint #21. COUNT(*) from contract_events grouped by day.
  2. Consider whether "contract calls" means distinct events or distinct transactions -- one transaction can emit multiple events, so pick a definition and document it.

Watch out for:

Definition of done:

  • GET /api/v1/soroban/contract-calls returns {date, count} from real contract_events data

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions