Skip to content

Instantly share code, notes, and snippets.

@LordGhostX
Created July 2, 2022 03:49
Show Gist options
  • Save LordGhostX/a0384bd28549c20ec6311ac1b6f9f68b to your computer and use it in GitHub Desktop.
Save LordGhostX/a0384bd28549c20ec6311ac1b6f9f68b to your computer and use it in GitHub Desktop.
Get all the staking coins supported by Ledger
import json
import requests
if __name__ == "__main__":
r = requests.get(
"https://ledger-ecom-cdn-prod.s3-eu-west-1.amazonaws.com/website/assets/website_input.json")
stakable = set()
for coin in r.json():
if coin["staking_live"] or coin["staking_ext"]:
stakable.add(coin["name"])
open("output.json", "w").write(json.dumps(list(stakable), indent=4))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment