Skip to main content
Add formatting for future viewers
Source Link
Shane Fontaine
  • 18.3k
  • 20
  • 56
  • 83

What I need

I need all information of tab "Token Transfers" in token info at etherscan. Exactly in format at the site. For example I want to get all Token Transfers from here https://etherscan.io/token/Decentraland. And question is: How to get this data through api?

What I tried to do

  1. For local solution I got it manually downloading csv thtough intefaceCSV through interface on etherscanEtherscan, but I need update data regularly and manual solution is a pain.

  2. I found this answer Obtain token transfer data from an address and it seemed to me as very usefulluseful but it didn't give me a token quantity information. Actually, it gave me transactionHash and I tried to get desired result through transcationstransactions api-methods (where is used these params 'module=account&action=txlist'module=account&action=txlist), but it didn't get me valid quantity (0.5 etneth were showed like 'value=500000'value=500000).

Moreover, I think it could be more simplier way to get this info — that's why I'm here.

A bit of code

The python code I used to get transaction info

import requests
url = 'https://api.etherscan.io/api?module=logs&action=getLogs\
&fromBlock=0\
&toBlock=latest\
&address=0x0f5d2fb29fb7d3cfee444a200298f468908cc942\
&apikey='+apikey
request = requests.get(url)
results = request.json()

What I need

I need all information of tab "Token Transfers" in token info at etherscan. Exactly in format at the site. For example I want to get all Token Transfers from here https://etherscan.io/token/Decentraland. And question is: How to get this data through api?

What I tried to do

  1. For local solution I got it manually downloading csv thtough inteface on etherscan, but I need update data regularly and manual solution is a pain.

  2. I found this answer Obtain token transfer data from an address and it seemed to me as very usefull but it didn't give me a token quantity information. Actually, it gave me transactionHash and I tried to get desired result through transcations api-methods (where is used these params 'module=account&action=txlist'), but it didn't get me valid quantity (0.5 etn were showed like 'value=500000').

Moreover, I think it could be more simplier way to get this info — that's why I'm here.

A bit of code

The python code I used to get transaction info

import requests
url = 'https://api.etherscan.io/api?module=logs&action=getLogs\
&fromBlock=0\
&toBlock=latest\
&address=0x0f5d2fb29fb7d3cfee444a200298f468908cc942\
&apikey='+apikey
request = requests.get(url)
results = request.json()

What I need

I need all information of tab "Token Transfers" in token info at etherscan. Exactly in format at the site. For example I want to get all Token Transfers from here https://etherscan.io/token/Decentraland. And question is: How to get this data through api?

What I tried to do

  1. For local solution I got it manually downloading CSV through interface on Etherscan, but I need update data regularly and manual solution is a pain.

  2. I found this answer Obtain token transfer data from an address and it seemed to me as very useful but it didn't give me a token quantity information. Actually, it gave me transactionHash and I tried to get desired result through transactions api-methods (where is used these params module=account&action=txlist), but it didn't get me valid quantity (0.5 eth were showed like value=500000).

Moreover, I think it could be more simplier way to get this info — that's why I'm here.

A bit of code

The python code I used to get transaction info

import requests
url = 'https://api.etherscan.io/api?module=logs&action=getLogs\
&fromBlock=0\
&toBlock=latest\
&address=0x0f5d2fb29fb7d3cfee444a200298f468908cc942\
&apikey='+apikey
request = requests.get(url)
results = request.json()
Source Link

Is there api way to get Token transfer data of exact token?

What I need

I need all information of tab "Token Transfers" in token info at etherscan. Exactly in format at the site. For example I want to get all Token Transfers from here https://etherscan.io/token/Decentraland. And question is: How to get this data through api?

What I tried to do

  1. For local solution I got it manually downloading csv thtough inteface on etherscan, but I need update data regularly and manual solution is a pain.

  2. I found this answer Obtain token transfer data from an address and it seemed to me as very usefull but it didn't give me a token quantity information. Actually, it gave me transactionHash and I tried to get desired result through transcations api-methods (where is used these params 'module=account&action=txlist'), but it didn't get me valid quantity (0.5 etn were showed like 'value=500000').

Moreover, I think it could be more simplier way to get this info — that's why I'm here.

A bit of code

The python code I used to get transaction info

import requests
url = 'https://api.etherscan.io/api?module=logs&action=getLogs\
&fromBlock=0\
&toBlock=latest\
&address=0x0f5d2fb29fb7d3cfee444a200298f468908cc942\
&apikey='+apikey
request = requests.get(url)
results = request.json()