-
Notifications
You must be signed in to change notification settings - Fork 49
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
XDC Balance of an Account does not match with Address #152
Comments
I checked the address’s balance in the genesis block, and it wasn’t pre-allocated. The issue is with transactions after block 61171073, which may be related to internal transactions. |
During the interaction with the contract
The total value of tokens transferred is 230,999,899 XDC, whereas the total amount shown by XDCScan is 673,000,300 XDC. Before Block 50829323, your balance was 14,950,000,899 XDC. Subtracting the total transferred amount (230,999,899 XDC) and the amount shown on XDCScan (673,000,300 XDC), leaves a balance of 14,046,000,700 XDC. After accounting for the gas fees incurred during these transactions, this matches your current account balance. I hope this helps. If you need any additional details about the transactions, please let me know! |
Thanks @JukLee0ira. Is there any Explorer or RPC APIs that give us the above data you shared. We need to validate a bunch of addresses, and APIs if any would help |
You can try SubQuery. Maybe it has such API. |
Also, you mentioned Balance(Before) blocknumber 50829323 to be 14950000899. How can we get this data? As per explorer this seems to be first debit transaction of the address. The first transaction only causes a negative balance. |
Actually I wrote a script to query this data, but I'm not sure if it’s suitable for enterprise-level production environments. |
I checked an Address https://xdcscan.io/address/0xd77875dF9C9dE07a5a701F4431743e3A0e9Fe03a, which has 12 debit transactions that sum up to -6730003000 (Negative due to all debit transactions). But explorer balance shows 14,046,000,699 XDC.
Can you please explain this discrepancy. Is it due to genesis balance? If yes, where can we find the list or API of all addresses and their genesis balances.
The text was updated successfully, but these errors were encountered: