Etherscan CSV export: how to download it, and its limit

By Published Updated

Etherscan exports the records of an Ethereum address as a CSV file from its page "Download Data (CSV Export)". At the time of writing, one export holds the earliest 5,000 records in the range you select. This guide shows how to make the export, how to get a longer history in parts, and how to check the result.

How do you export transactions from Etherscan to CSV?

You export from Etherscan's export page: choose the kind of record, enter the address and a range, and download the file. Etherscan is a block explorer, which is a website that shows the public record of a blockchain. The steps are these:

  1. Open the export page.
  2. Choose what to export. For an address, the page lists Transactions, Internal Transactions, Token Transfers (ERC-20) and NFT Transfers. Each one is a separate export.
  3. Enter the address.
  4. Choose the range. The page offers a range of dates or a range of block numbers, and asks for a start and an end.
  5. Complete the check that you are not a robot, which the page asks for, and download the file.

What is the Etherscan CSV export limit?

The limit is 5,000 records for one export. Etherscan's export page states it in these words: "The earliest 5,000 records within the selected range will be exported". The limit can change, so read the sentence on the page before you rely on it. The day on which the page was read for this guide is in the sources at the end.

The sentence has a useful detail. The export keeps the earliest records of the range, not the latest. A range that holds more records than the limit gives you its beginning, and you can continue from the point where the file ends.

Which export do you need for USDT or USDC payments?

For stablecoin payments you need the export called Token Transfers (ERC-20). ERC-20 is the token standard of Ethereum, and its specification describes it as "a standard interface for tokens". Tether lists USDT on Ethereum as an ERC-20 token. A payment in such a token is a token transfer, so it belongs to that export and not to the export called Transactions.

How do you export more records than the limit?

Export the history in several ranges, each with fewer records than the limit, and join the files. Because each export begins with the earliest records, work forward in time:

  1. Export from the first day of the history to today.
  2. Open the file and count its rows. If there are fewer than the limit, the file is complete and you are done.
  3. If the file is full, find the date of its last row. Start the next export on that same date, because the limit may have cut that day in the middle.
  4. Repeat until an export returns fewer rows than the limit.
  5. Join the files and remove the rows that appear twice. They are the rows of the days on which one file ended and the next began.

A busy address needs short ranges. A quiet address can be exported one year at a time.

How do you check that the export is complete?

Check the row counts, the dates and the balance. The table shows each check and what a problem looks like.

CheckHow to do itA problem looks like this
Row countCount the rows of each fileA file with exactly as many rows as the limit: the range was cut
DatesCompare the first and the last date with the range you asked forThe last row is earlier than the end of the range, in a full file
BalanceAdd all incoming amounts of the token and subtract all outgoing amountsThe result differs from the token balance of the address: rows are missing or doubled
Known paymentsSearch the file for a few payments you rememberA payment you know is not in the file

The balance check works for the whole history only. It is the strongest of the checks, because one missing row changes the result.

What does the file not tell you?

The file is the raw public record, so it holds addresses and not names. It has no categories and no descriptions. It does not set apart a transfer between addresses that you own, so such a transfer looks like spending in one place and income in another. You add that meaning yourself, in a spreadsheet or in bookkeeping software.

What Chainbook does here

Chainbook offers a free tool and an account, and both read the same public record. The free USDT transfer export needs no account. It takes one address and makes a CSV file of its most recent transfers, at most 1,000 in one file, for these tokens: USDT on TRON; USDT and USDC on Ethereum. When older transfers exist beyond the file, the last row of the file says so.

In an account, you add the address to a wallet. Its history of USDT and USDC on Ethereum is imported, and new transfers follow every 10 minutes. You can filter the ledger by dates and export what it shows, up to 50,000 rows per file. An export that is too large is refused, with a request to narrow the list. A shortened file is never sent.

Sources