Skip to content
Discussions/App Development/Consumed traffic over a given time window?Forum ↗

Consumed traffic over a given time window?

App Development1 posts16 viewsLast activity 20h ago
WA
WallaceKellyOP
20h ago

I need programmatic access to the following data over a given time window:

  • the base-rate traffic which my node consumed
  • the paid traffic which my node consumed

What are my options?


Canton Metrics?

For example, I see these two Canton Metrics:

Would I sum those metrics for the total traffic? However, I’m assuming that the metric does not differentiate between base-rate and paid traffic. Is that correct?

Scan API or Canton Console?

I see the traffic-status endpoint but that returns results for “at the time of the request.”

I see the traffic_state_of_members_at_timestamp function, but that would be challenging to use reliably due to traffic purchases and base rate credits during the time window.

← Back to Discussions