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

Investigate potential data bug #123

Open
dangershony opened this issue Mar 11, 2022 · 0 comments
Open

Investigate potential data bug #123

dangershony opened this issue Mar 11, 2022 · 0 comments

Comments

@dangershony
Copy link
Member

What I think the issue to be is that the information we capture isn't the info most care about.

Say I go to the store and buy a Yogurt. I give the clerk 1000 shillings and they give me back 33. What I care about is that the Yougurt cost 977. Not that I "Spent" 1000 and "received" 33.
So the TotalSpent and TotalReceived appear to be of little value.
When downloading the transactions from Chains and filtering on Send or Receive and Totaling them I get the number that is of value.
https://explorer.blockcore.net/crs/explorer/address/CPGdssraPjL7syfBDUpNiMoUmLuafvqbrb
Blockcore /// Build Blockchains
Blockcore Explorer is a Cross-Chain Multi-Chain Block Explorer.
Blockcore /// Build Blockchains
Can use this address (a masternode) as example
Image
Those Total Sent and Received numbers are of little to no value at all.
curl -X 'GET'
'https://crs.indexer.blockcore.net/api/query/address/CPGdssraPjL7syfBDUpNiMoUmLuafvqbrb/transactions?offset=0&limit=50'
-H 'accept: /'

taking these results and filtering by type and summing them gives a value that has meaning.
The key piece of information is the Delta
if Delta is negative you spent if Positive you received

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

1 participant