since eth_pendingTransaction endpoint is no longer supported and cannot be found here https://eth.wiki/json-rpc/API

how does etherscan listens and display for pending transaction? does it use filters, websockets, etc?

  • txpool.Content() is your friend
    – Nulik
    Jul 8 '21 at 12:55
  • curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"txpool_content","params":[],"id":67}' http://localhost:8545/
    – Nulik
    Jul 8 '21 at 13:09
  • after enabling txpool module, something like: --http.api 'eth,net,web3,txpool,debug' in geth options
    – Nulik
    Jul 8 '21 at 13:10

Etherscan runs its own customised nodes and infrastructure, much of its functionality is not directly available in open source projects.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.