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

Stats of active address #804

Open
Keith-CY opened this issue Dec 23, 2024 · 3 comments
Open

Stats of active address #804

Keith-CY opened this issue Dec 23, 2024 · 3 comments
Assignees

Comments

@Keith-CY
Copy link
Member

This feature request comes from the community.


Count the number of active addresses for each day over the past month.

Currently, this can be calculated from the database only once.

In the future, we would like a chart for querying this data.

For future chart queries, we would like to group the statistics by address type (secp256k1, joyid, omnilock).

@poor-defined
Copy link
Contributor

This feature request comes from the community.

Count the number of active addresses for each day over the past month.

Currently, this can be calculated from the database only once.

In the future, we would like a chart for querying this data.

For future chart queries, we would like to group the statistics by address type (secp256k1, joyid, omnilock).

I want to double check two things:

  1. What is finally needed is a daily updated chart, where the Y-axis represents the total number of active addresses over the past 30 days?
  2. Can an active address for a given day be defined as an address involved in the inputs or outputs of transactions on that day?

For example: The data in the chart for December 25th represents the number of address that involved inputs or outputs of a transaction between November 25th (00:00) and December 25th (00:00).

这里有两点需要再次确认下:

  1. 最终需要的是一个每日更新的图表,其中图表的Y轴数值表示过去30天内活跃地址的总数是吗?
  2. 是否可以定义某日的活跃地址为:参与到当日的交易的输入或者输出中的地址

例如:图里 12月25日的数据 表示:在11月25日(00:00)到12月25日(00:00) 所有参与到过 交易的input 或 Out put的地址数量

@Keith-CY cc @zmcNotafraid

@Keith-CY
Copy link
Member Author

  1. What is finally needed is a daily updated chart, where the Y-axis represents the total number of active addresses over the past 30 days?

Yes, a chart with

  1. the total count of active address of each day
  2. the count of each specific address type
  1. Can an active address for a given day be defined as an address involved in the inputs or outputs of transactions on that day?

For example: The data in the chart for December 25th represents the number of address that involved inputs or outputs of a transaction between November 25th (00:00) and December 25th (00:00).

Yes

@zmcNotafraid zmcNotafraid moved this to 🏗 In Progress in CKB Explorer Dec 25, 2024
@zmcNotafraid
Copy link
Member

zmcNotafraid commented Dec 25, 2024

PR: nervosnetwork/ckb-explorer#2372


curl --request GET \
  --url 'https://testnet-api.explorer.nervos.org/api/v1/daily_statistics/activity_address_contract_distribution?test=true' \
  --header 'Accept: application/vnd.api+json' \
  --header 'content-type: application/vnd.api+json'

@zmcNotafraid zmcNotafraid moved this from 🏗 In Progress to 🚩Pre Release in CKB Explorer Dec 25, 2024
@zmcNotafraid zmcNotafraid moved this from 🚩Pre Release to ✅ Done in CKB Explorer Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

No branches or pull requests

3 participants