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

utils: add GetTopAddr to analyse large traffic #2629

Merged
merged 3 commits into from
Aug 5, 2024

Conversation

zzzckck
Copy link
Collaborator

@zzzckck zzzckck commented Aug 5, 2024

Description

And also merge several js utils into one file to make it tidy, their usage are also updated.

Rationale

GetTopAddr is used to dump the topN target address within a block range.

Example

cd <bsc/cmd/jsutils>
node getchainstatus.js GetTopAddr --rpc https://bsc-mainnet.nodereal.io/v1/454e504917db4f82b756bd0cf6317dce --startNum 41083886  --endNum 41084056 --topNum 10
Find the top target address, between 41083886 and 41084056
progress: 170 blocks left totalTxs 530
...
progress: 0 blocks left totalTxs 93793
0: 0x7bba2A9A00a8b5D3BE3f86F5c6140Bf6E5F79A1a   12653   13.49%
1: 0xC6C253ed34De76376C1CA6f6E49454e21d2569b2   9852   10.50%
2: 0x578C5C1B734662c1dF134d70D576601cC6DDcA55   6616   7.05%
3: 0x40661F989826CC641Ce1601526Bb16a4221412c8   5348   5.70%
4: 0x55d398326f99059fF775485246999027B3197955   3954   4.22%
5: 0x04655D6fB863F2C8275c12D32D6E22D42941d3f9   3676   3.92%
6: 0x802b65b5d9016621E66003aeD0b16615093f328b   3413   3.64%
7: 0x7Ba15571D6E294b8DA3bB9F139EBaCBBd05bb50C   3278   3.49%
8: 0xA528EcD3F9fC8BA8d935a81B91500a3E05b08B23   2706   2.89%
9: 0xC5298bd84f850a154e7a33e3fAf43d0FD4eEb0d4   1748   1.86%
10: 0xEdF2938B24c6fF10bF41F99cD1e93337cBa288Ee   1698   1.81%
11: 0x8e6D6da0Fcc8A84f7e7AEEC40AFAFf0EF97FD82A   1664   1.77%
12: 0x1CBDA9e3EcF292d5113fC6be56AAdb9e24478265   1653   1.76%
13: 0x10ED43C718714eb63d5aA57B78B54704E256024E   1481   1.58%
14: 0xED63eEaC81e2D52083eC9917C915E1e747EE52Ac   1313   1.40%
15: 0x57C5836b1a8AF94A985ED6a50F5dCA8F2fe824d8   1233   1.31%
16: 0x13f4EA83D0bd40E75C8222255bc855a974568Dd4   809   0.86%
17: 0x1A0A18AC4BECDDbd6389559687d1A73d8927E416   788   0.84%
18: 0xEdc94232a8ede362ff062459F4940b5794C5a7F4   728   0.78%
19: 0xfB1f6696ceb2B6410c6065CC1472d5D40b7a7D1A   695   0.74%

Changes

NA

@zzzckck zzzckck changed the title Jsutil gettopaddr utils: add GetTopAddr to analyse large traffic Aug 5, 2024
@zzzckck zzzckck merged commit b61128b into bnb-chain:develop Aug 5, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants