[Ethereum] Get all TOKEN transactions by address

addressesexternal-apitokenstransactions

Given the address of a token, how I can get all the transactions related to that address using JSON RPC or an external api such a api.etherscan.io?

The transactions that gives a Ethereum address are different that the transaction that gives an ERC20 token. Example:

https://etherscan.io/address/0x9f7dd5ea934d188a599567ee104e97fa46cb4496 https://etherscan.io/token/Aragon?a=0x9f7dd5ea934d188a599567ee104e97fa46cb4496

I need to get the two transaction that are registered for Aragon via API.

Best Answer

First, you go to your address page and click Erc20 Tokens Txns tab.

Erc20 Token Txns Tab

https://etherscan.io/address/0x9f7dd5ea934d188a599567ee104e97fa46cb4496#tokentxns

Then you look for Aragon in token column and click it.

Aragon in Token column

You will end up on the page where you can export all your transactions in CSV.

CSV export

And here is your URL structure:

https://etherscan.io/token/0x960b236a07cf122663c4303350609a66a7b288c0?a=0x9f7dd5ea934d188a599567ee104e97fa46cb4496

Just add you address as ?a=0x9f7dd5ea934d188a599567ee104e97fa46cb4496 URL parameter to Aragon token URL to get all Aragon transactions for your address.

Related Topic