Created
May 16, 2022 09:44
-
-
Save ries9112/305a89d66ade43dc33d4461e0872b4f3 to your computer and use it in GitHub Desktop.
A script that makes an API request using the users's address to make a plot of the user's delegation on The Graph
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let image_show = parcel.getFeatureById('image_show_delegation') | |
feature.on('click',e=>{ | |
image_show.set({'url':"http://r-cv-api.org/delegation/delegations_unrealized_rewards?delegator="+e.player.wallet}) | |
console.log(e.player.wallet) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment