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

Support script filters on API of getting contract resource distribution #729

Closed
Keith-CY opened this issue Jul 2, 2024 · 1 comment
Closed
Assignees
Labels

Comments

@Keith-CY
Copy link
Member

Keith-CY commented Jul 2, 2024

This feature request comes from the community


Now there's an API(https://mainnet-api.explorer.nervos.org/api/v2/statistics/contract_resource_distributed) to get the contract resource distribution

It covers 80 scripts.

The user want to focus on a set of scripts, so they wonder if a filter of code hashes can be supported for the API, e.g.

https://mainnet-api.explorer.nervos.org/api/v2/statistics/contract_resource_distributed?code_hashes=code_hash_1,code_hash_2

@zmcNotafraid zmcNotafraid self-assigned this Jul 5, 2024
@Sven-TBD Sven-TBD removed their assignment Jul 5, 2024
@Sven-TBD Sven-TBD moved this to 📌CurrentWeek in CKB Explorer Jul 8, 2024
@zmcNotafraid
Copy link
Member

zmcNotafraid commented Jul 9, 2024

PR: nervosnetwork/ckb-explorer#2042


https://mainnet-api.explorer.nervos.org/api/v2/statistics/contract_resource_distributed?code_hashes=0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8,0x5c5069eb0857efc65e1bca0c07df34c31663b3622fd3876c876320fc9634e2a8

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

No branches or pull requests

3 participants