Simple script to export transactions from Etherscan into a CSV file and not be blocked by the 5k limit on the UI.
This script is used to export all transactions of a unique address into a CSV file.
It can also be used to get other data by changing the API endpoint called inside the script (internal transactions, ERC20 transfers, ERC721 transfers...). All possible endpoints are defined in the Etherscan documentation
git clone https://github.com/flbouchut/etherscan-exporter
npm installFirst create a .env file and insert you Etherscan API key inside it as showed in .env.example
Inside the script, replace the following :
address: Address you want to extract transactions from.startblock: First block of the extract. (0 if you want to get all transactions)endblock: Last block of the extract. (99999999 if you want to get all transactions)
node index.js