How to inspect the mempool (pending txs) with Infura?

Is it even possible?
Do we need an addon?

1 Like

Hi @jklepatch you can inspect the pending transaction pool using a newPendingTransaction websocket subscription type, https://infura.io/docs/ethereum/wss/eth-subscribe

Let us know if that works for you!

hey @mike

I tried following the instructions from that page. But am getting 401

wscat -c wss://mainnet.infura.io/ws/v3/MY_PROJECT_ID --auth ":MY_SECRET"

error: Unexpected server response: 401

I tried entering the entier WSS URL instead

wscat -c "wss://MY_PROJECT_ID:MY_SECRET@eth2-beacon-mainnet.infura.io"

Error:

error: Unexpected server response: 404