wormhole-foundation / wormhole-explorer

We could have named this super-parakeet. Tweet tweet.
Other
26 stars 22 forks source link

Development of a New Endpoint for Chain-Pair Activity Metrics #1224

Open SamantaCasal opened 3 months ago

SamantaCasal commented 3 months ago

Description:

We are seeking to enhance our backend capabilities by developing a new endpoint that provides detailed metrics on transaction activity, measured both in USD volume and the number of transactions, within a specified time range.

The data returned should include information on the source chain, the volume of transactions in USD, the number of transactions (txns), and a breakdown of destinations by target chain, volume, and transaction count.

This endpoint is expected to significantly contribute to our platform's analytical capabilities, offering deeper insights into transaction trends and enabling more dynamic data-driven strategies.

Require Data Structure:

Chain-Pair: Sui-Eth Filter: 1d sampleRate: 1h

txs: 77000 volume: 700000

Key Features:

Query parameters could be: timeSpan &sampleRate

Acceptance Criteria:

  1. Endpoint Functionality: The newly developed endpoint must accurately return transaction activity data, including volume in USD and the number of transactions within the specified time range.
  2. Granularity Support: The endpoint must correctly interpret and respond to query parameters specifying the desired granularity (hours, days, months, years), providing data segmented accordingly.
  3. Data Accuracy: The returned data must accurately reflect the transaction activities, with precise figures for volume (USD), transaction counts (txns), and detailed breakdowns by target chain within the destinations array.
  4. Performance: The endpoint should be optimized for performance, ensuring timely responses even when processing large datasets or covering extensive time ranges.
  5. Documentation: Comprehensive documentation must be provided for the new endpoint, including details on the request format, supported query parameters for granularity, and the structure of the response data. This documentation will aid developers in effectively utilizing the endpoint.
SamantaCasal commented 2 months ago

STG: https://api.staging.wormscan.io/api/v1/x-chain-activity/tops?from=2024-03-04T00:00:00Z&to=2024-03-10T00:00:00Z&timespan=1d&sourceChain=1&targetChain=2

SamantaCasal commented 1 month ago

https://api.wormholescan.io/api/v1/x-chain-activity/tops?from=2024-03-04T00:00:00Z&to=2024-03-10T00:00:00Z&timespan=1d&sourceChain=1&targetChain=5&appId=PORTAL_TOKEN_BRIDGE