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

Historical claim values per address #33

Open
hetfly opened this issue Feb 26, 2024 · 5 comments
Open

Historical claim values per address #33

hetfly opened this issue Feb 26, 2024 · 5 comments
Assignees

Comments

@hetfly
Copy link
Collaborator

hetfly commented Feb 26, 2024

Create an endpoint that returns claimed token amounts per queried address over the past 30days (total dollar value would be nice but not necessary)

watch these transactions:

cxd82fb5d3effecd8c9071a4bba3856ad7222c4b91
- claimRewards
cx10d59e8103ab44635190bd4139dbfd682fa2d07e
- claimRewards
cx203d9cd2a669be67177e997b8948ce2c35caffae
- claimDividends
cx28497aef34ec44ad2be9249daddfbe34b54f309a
- claimBribe

claimBribe might claim different tokens

@robcxyz
Copy link
Contributor

robcxyz commented Feb 28, 2024

For this one,

cxd82fb5d3effecd8c9071a4bba3856ad7222c4b91

  • claimRewards
    I only get 4 records
curl -X 'GET' \
  'https://tracker.icon.community/api/v1/transactions?to=cxd82fb5d3effecd8c9071a4bba3856ad7222c4b91&method=claimRewards' \
  -H 'accept: application/json'

Seems like this data is just available via the existing API or am I missing something?

https://tracker.icon.community/api/v1/docs/index.html#/Transactions/get_api_v1_transactions

@hetfly
Copy link
Collaborator Author

hetfly commented Mar 19, 2024

I don't know where else to get the data except for the tracker, but the point of the issue is to have a single endpoint for total user rewards per month. Is it possible?

@robcxyz
Copy link
Contributor

robcxyz commented Mar 21, 2024

So there are 4 contracts, and consolidate that into one endpoint?

Is the tracker data correct though?

If this is just to consolidate the data from what would be 4 API calls, this doesn't seem worth it.

@robcxyz
Copy link
Contributor

robcxyz commented Mar 22, 2024

Not burning. Fix the /logs endpoint so I can see if there is a real tracker based way - txs won't get the data

@FezBox
Copy link

FezBox commented Jun 24, 2024

this is iceboxed for now

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

3 participants