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

pangaea explorer API shows incorrect data for account information and json data doesn't have the shard tx count #38

Open
sophoah opened this issue Sep 22, 2019 · 4 comments

Comments

@sophoah
Copy link
Collaborator

sophoah commented Sep 22, 2019

root@pangaea:~# ./wallet.sh -t balances
Using pangaea profile for wallet
Account 0:
Address: one155ne9v72hq4jp37vw0d0ml7e8yfxhgz6yfj377
Balance in Shard 0: 98.18, nonce: 5
Balance in Shard 1: 103.0000, nonce: 0
Balance in Shard 2: 98.0000, nonce: 2
Balance in Shard 3: 1457.488167427, nonce: 1

below should have a tx count for each shard as well

root@pangaea: echo curl --silent https://explorer.pangaea.harmony.one:8888/address?id=one155ne9v72hq4jp37vw0d0ml7e8yfxhgz6yfj377 | jq
{
"address": {
"id": "one155ne9v72hq4jp37vw0d0ml7e8yfxhgz6yfj377",
"balance": 1757303956792468300000,
"txCount": 0,
"shardData": [
{
"id": "one155ne9v72hq4jp37vw0d0ml7e8yfxhgz6yfj377",
"balance": 9.818e+19,
"txs": []
},
{
"id": "one155ne9v72hq4jp37vw0d0ml7e8yfxhgz6yfj377",
"balance": 1.03e+20,
"txs": []
},
{
"id": "one155ne9v72hq4jp37vw0d0ml7e8yfxhgz6yfj377",
"balance": 9.8e+19,
"txs": []
},
{
"id": "one155ne9v72hq4jp37vw0d0ml7e8yfxhgz6yfj377",
"balance": 1458123956792468200000,
"txs": []
}
]
}
}
root@pangaea:

@sophoah
Copy link
Collaborator Author

sophoah commented Sep 22, 2019

i was looking a little bit closer, looks like the data may be correct, just that the number is not correctly formatted, 1757303956792468300000 should be 1757.3039567924683

@mindstyle85
Copy link

like we discussed in the support chat, this is probably balance in wei, that is why so many numbers, 18 decimalds from right to left, everything else are whole numbers

@sophoah
Copy link
Collaborator Author

sophoah commented Sep 22, 2019

yeah guess we can close this one, I'll do it now

@sophoah sophoah closed this as completed Sep 22, 2019
@sophoah sophoah reopened this Sep 22, 2019
@sophoah
Copy link
Collaborator Author

sophoah commented Sep 22, 2019

reopening so we have a trace on the tx count per shard which is not in the result of the API

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

No branches or pull requests

2 participants