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

Export hodlers of a specifc xUDT token on a specific block number #641

Closed
Keith-CY opened this issue Apr 30, 2024 · 8 comments · Fixed by Magickbase/ckb-explorer-frontend#352
Assignees
Labels

Comments

@Keith-CY
Copy link
Member

This feature request comes from the community.


The holder rank at a specific block number is desirable for some activities, e.g airdrop, and the following data are required

  1. holder address: CKB address, and its BTC address if it's a RGB++ Address;
  2. token amount: raw amount and formatted one if the token info has been detected;
@Keith-CY
Copy link
Member Author

@Sven-TBD Please append an ETA of this feature, API can be published prior to the UI

@Keith-CY
Copy link
Member Author

Keith-CY commented May 5, 2024

Move this issue to high priority

@Sven-TBD
Copy link
Contributor

Sven-TBD commented May 6, 2024

@rabbitz
Copy link

rabbitz commented May 7, 2024

PR: nervosnetwork/ckb-explorer#1832

Export xudt snapshot

# api
GET /api/v1/xudts/snapshot?id=&number=

# params
id # xudt type_hash
number # special block number

e.g.

curl --location --request GET 'https://ckb-explorer-api-staging.magickbase.com/api/v1/xudts/snapshot?id=0x78e21efcf107e7886eadeadecd1a01cfb88f1e5617f4438685db55b3a540d202&number=13167489' \
--header 'Accept: application/vnd.api+json' \
--header 'User-Agent: Apifox/1.0.0 (https://apifox.com)' \
--header 'Content-Type: application/vnd.api+json' \
--header 'Host: ckb-explorer-api-staging.magickbase.com' \
--header 'Connection: keep-alive'

@FrederLu
Copy link

https://pudge.explorer.nervos.org/xudt/0xe6396293287fefb9f26d98eb0318fe80890908f0849226ad0c8cab2d62f1e351
image

https://pudge.explorer.nervos.org/export-xudt-holders?height=1&id=0xe6396293287fefb9f26d98eb0318fe80890908f0849226ad0c8cab2d62f1e351

image

1、This xUDT starts from block 13,344,852, but when exporting data, it lacks judgment on exportable data and block data.


https://pudge.explorer.nervos.org/zh/export-xudt-holders?height=11&id=0xe6396293287fefb9f26d98eb0318fe80890908f0849226ad0c8cab2d62f1e351

https://pudge.explorer.nervos.org/en/export-xudt-holders?height=11
image

2、Switching the language will cause the URL to change, making it impossible to export data.


UI link https://www.figma.com/design/6XNoimRDbFTTNm016rbIdU/Magickbase?node-id=37293-49242&t=spIVoU69fJqsehZ2-0
image
3、There is missing information under Download Data (Holders by Block) on the mobile version. At the same time, the style of the red box below in the screenshot does not match the UI, and there is also a lack of dividing lines.
image

@FrederLu
Copy link

FrederLu commented May 24, 2024

@PainterPuppets
Copy link

https://pudge.explorer.nervos.org/xudt/0xe6396293287fefb9f26d98eb0318fe80890908f0849226ad0c8cab2d62f1e351 image

https://pudge.explorer.nervos.org/export-xudt-holders?height=1&id=0xe6396293287fefb9f26d98eb0318fe80890908f0849226ad0c8cab2d62f1e351

image 1、This xUDT starts from `block 13,344,852`, but when exporting data, it lacks judgment on exportable data and block data.

https://pudge.explorer.nervos.org/zh/export-xudt-holders?height=11&id=0xe6396293287fefb9f26d98eb0318fe80890908f0849226ad0c8cab2d62f1e351

https://pudge.explorer.nervos.org/en/export-xudt-holders?height=11 image

2、Switching the language will cause the URL to change, making it impossible to export data.

UI link https://www.figma.com/design/6XNoimRDbFTTNm016rbIdU/Magickbase?node-id=37293-49242&t=spIVoU69fJqsehZ2-0 image 3、There is missing information under Download Data (Holders by Block) on the mobile version. At the same time, the style of the red box below in the screenshot does not match the UI, and there is also a lack of dividing lines. image

fixed by Magickbase/ckb-explorer-frontend#352

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

6 participants