Content pfp
Content
@
0 reply
26 recasts
27 reactions

seneca pfp
seneca
@seneca
anyone know how to look at holder growth over time for a base token?
16 replies
4 recasts
51 reactions

Sandrine  pfp
Sandrine
@jemenoiedansunve
import requests import json import time api_key = 'YOUR_ETHERSCAN_API_KEY' contract_address = 'YOUR_TOKEN_CONTRACT_ADDRESS' def get_token_holders(api_key, contract_address): url = f'https://api.etherscan.io/api?module=stats&action=tokensupply&contractaddress={contract_address}&apikey={api_key}' response = requests.get(url) data = response.json() return data['result'] # Schedule this to run periodically holder_data = [] while True: holders = get_token_holders(api_key, contract_address) holder_data.append({'timestamp': time.time(), 'holders': holders}) time.sleep(86400) # Fetch data daily
1 reply
0 recast
0 reaction

Sandrine  pfp
Sandrine
@jemenoiedansunve
This script collects the current number of holders daily and can be expanded to store data in a database or a file for further analysis. By following these steps, you can systematically track and analyze holder growth over time for any base token.
0 reply
0 recast
0 reaction