Skip to content

Instantly share code, notes, and snippets.

View rico201's full-sized avatar

Raghda2017hagb rico201

  • https://s.binance.com/ZLlHfDHv
  • Aden
View GitHub Profile
@rico201
rico201 / history.js
Created October 17, 2025 03:49
Get Address Full Transaction History
async function getAddressFullTransactionHistory() {
var address = "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
var fullTransactions = []
var nextBlock = 0
while (true) {
const requestTransactions = await fetch(`https://api.etherscan.io/v2/api?chainid=1&module=account&action=txlist&address=${address}&startblock=${nextBlock}&endblock=latest&page=1&offset=1000&sort=asc&apikey=YourApiKeyToken`)
const transactions = await requestTransactions.json()