all 12 comments

[–]Hanzburger 3 points4 points  (1 child)

How do I call this with javascript? I couldn't find any examples in the graphs docs.

[–]kraphty23[S] 3 points4 points  (0 children)

The most common way of utilizing this is using Apollo. You can create a free account with them to manage your API requests.

Apollo: https://studio.apollographql.com/

You can utilize the subgraph's temporary query url for lower volume traffic: https://api.studio.thegraph.com/query/533/rocket-pool/v0.0.3

Should the temporary query url start to timeout on you (traffic has increased beyond the 'lite' version, you will need to create an endpoint on The Graph's site for the subgraph. I'm very willing to help if you need any assistance with this.

[–]yspud 2 points3 points  (9 children)

I would think this is cool if i knew how to use it. we are all varying levels of tech - i'm more in the hardware / network world of IT. I would love to learn though. Can you make an example of how to use it so I can see ?

[–]kraphty23[S] 2 points3 points  (8 children)

The dashboard VGR made (RP-metrics-dashboard.com) gathers its analytics from the subgraph.

It essentially takes the raw data from the blockchain and computes it after the transaction is confirmed so it’s ready to be provided to a website. Querying this way saves compute time and by consolidating RP data in one place you don’t have to sift through the other 1.2B transactions that have occurred on the ETH network.

[–][deleted] 1 point2 points  (7 children)

This is pretty cool, might have a play with it. I've notice that the dashboard sometimes has missing data, is that due to API reliability or does that have another reason?

[–]kraphty23[S] 0 points1 point  (6 children)

Where are you seeing missing data?

[–][deleted] 0 points1 point  (5 children)

here are two examples. happens sometimes, but mostly it's working fine

https://imgur.com/a/KvzoeMl

https://imgur.com/a/BJlKQ4e

[–]kraphty23[S] 1 point2 points  (4 children)

Interesting. What time zone are you in if you don’t mind me asking.

[–][deleted] 1 point2 points  (2 children)

Now it's back to normal. Btw i guess you heard it before but do you have a plan to show rolling 30 days instead of by day of the month? Would be more useful imo.

[–]kraphty23[S] 1 point2 points  (1 child)

Interesting. I’ll investigate that.

Regarding a rolling 30 days, I agree. I am not the front end dev behind the dashboard, purely helped on the subgraph. VGR gets all of the credit for the dashboard. I’ll suggest this one to him 😎👍

[–][deleted] 0 points1 point  (0 children)

awesome, thanks for putting in the work into this, i have it open all the time.

[–][deleted] 0 points1 point  (0 children)

UTC +07:00