Created
July 2, 2022 03:49
-
-
Save LordGhostX/a0384bd28549c20ec6311ac1b6f9f68b to your computer and use it in GitHub Desktop.
Get all the staking coins supported by Ledger
This file contains hidden or 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
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