Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
396 B
1
Indexable
Never
#!/usr/bin/python
# Get NFT1 holders
# Address: 0xd21a23606D2746f086f6528Cd6873bAD3307b903
import requests
chainid=1
URL = "https://api.covalenthq.com/v1/"+str(chainid)+"/tokens/0xd21a23606D2746f086f6528Cd6873bAD3307b903/token_holders/?&key=ckey_80d0aba5413a4a5a8e0d2d315f6";

r = requests.get(url = URL)

data = r.json()
for item in data['data']['items']:
    print(item['address'])