Retroactive token balance query in specific block range on the Binance Smart Chain using QuickNode API endpoint.
Download these libraries Web3, createObjectCsvWriter, cliProgress, Bottleneck using:
npm install [library]
-Input specific contract address at 'tokenAddress'
-Input specific block range at 'startBlock'
and 'endBlock'
-Input QuickNode API endpoint URL at 'endpoint'
-Input contract's Application Binary Interface at 'ABI'
(save as .json externally and link correct file path.)
RUN the script:
node transfer_events.js