Skip to content

Instantly share code, notes, and snippets.

@ries9112
Created May 16, 2022 09:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ries9112/305a89d66ade43dc33d4461e0872b4f3 to your computer and use it in GitHub Desktop.
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
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