Open Keith-CY opened 5 days ago
curl 'https://ckb-explorer-api-staging.magickbase.com/api/v1/daily_statistics/knowledge_size' \
-H 'accept: application/vnd.api+json' \
-H 'accept-language: zh-CN,zh;q=0.9,en;q=0.8,sa;q=0.7' \
-H 'cache-control: no-cache' \
-H 'content-type: application/vnd.api+json'
Is your feature request related to a problem? Please describe.
The knowledge size is the size occupied by on-chain data, not the declared size of cells. It reveals how many resources are used to share common knowledge, which is an important index for users.
Describe the solution you'd like The current knowledge size can be calculated as described in https://talk.nervos.org/t/how-to-get-the-average-occupied-bytes-per-live-cell-in-ckb/7138/2?u=keith
And here is the code
A chart of its history can be added in the explorer so we can see how it grew in the past.
Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.