Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

244
Visualizações
How to check oldest transaction on Ethereum address?

I have a large amount of Ethereum address that I want to get the oldest transaction on that wallet

If the oldest transaction on that address is more than 10 days then I will keep it, other address will be discard

What is the best way to do this kind of task? checking it one by one is too tedious

Thank you very much for helping me

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Assuming you have access to a node provider with archive data, you can query the transaction count at a specific block number (e.g. a block that was mined 10 days ago).

const txCount10DaysAgo = await web3.eth.getTransactionCount(
    address,
    blockNumber10DaysAgo
);

If the oldest transaction on that address is more than 10 days then I will keep it

if (txCount10DaysAgo > 0) {
    keep(address);
}

Docs: https://web3js.readthedocs.io/en/v1.7.0/web3-eth.html#gettransactioncount

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda