Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

201
Views
Necesito obtener todas las transacciones como mint, grabar en web3

Necesito obtener todas las transacciones de una dirección en bsc. Probé bscscan api pero no da todo, como grabar acciones de acuñación, solo dan transferencias, ¿cómo puedo obtener todas las transacciones con web3 js o web3 py? agradeceria si alguien me puede ayudar

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Necesita escanear todos los bloques y encontrar lo que necesita. Esta es una manera muy mala. De otra manera, puedes usar la API

compruebe etherscan.io api puede obtener una lista de todas las transacciones fácilmente como alternativa

https://etherscan.io/apis

http://api.etherscan.io/api?module=account&action=txlist&address=0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae&startblock=0&endblock=99999999&sort=asc&apikey=SuApiKeyToken

y trabajar con esta respuesta. Esta es una manera fácil, pero no es una manera fácil de obtener todas las transacciones a través de web3js o web3py.

Pero si solo necesita eventos específicos, eso fue mucho más fácil.

necesitas la función getPastEvents

 const START_BLOCK = 7700000; const END_BLOCK = 7701000; contract.getPastEvents("allEvents", { fromBlock: START_BLOCK, toBlock: END_BLOCK // You can also specify 'latest' }) .then(events => console.log(events)) .catch((err) => console.error(err));

Solo puede configurar eventos de menta o grabación.

https://web3js.readthedocs.io/en/v1.2.11/web3-eth-contract.html#getpastevents

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!