Skip to content

Instantly share code, notes, and snippets.

@TrevorJTClarke
Created April 2, 2019 20:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save TrevorJTClarke/dd90774a8cf89a199224b67528b15c1d to your computer and use it in GitHub Desktop.
Save TrevorJTClarke/dd90774a8cf89a199224b67528b15c1d to your computer and use it in GitHub Desktop.
// View Full documentation here: https://docs.amberdata.io/reference/tokens#get-historical-token-holders
axios({
method:'get',
url: 'https://web3api.io/api/v1/tokens/ETHEREUM_ADDRESS_HERE/holders/historical?timeFrame=30d',
headers: { 'x-api-key': 'YOUR_API_KEY_HERE' }
}).then(res => {
// res data example:
// {
// "metadata": {
// "columns": ["timestamp", "timestamp.holder*"]
// },
// "data": [{
// "timestamp": 1551571200000,
// "0x3f5ce5fbfe3e9af3971dd833d26ba9b5c936f0be": 5.124709176050061e+27
// },
// ...
// ]
// }
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment