Subscribe to alll Trxs as well as external trxs rejected by the node because Trx queue logic

Hi All we looking to receive external trxs before they go through the dropping or acceptance logic of a node and being added to the transaction queue - https://wiki.parity.io/Transactions-Queue - the aim is to catch any double spend attempts -is this something we could subscribe to through Infura - essentially listing to trx messages on the Wire Protocol Devp2p https://github.com/ethereum/devp2p/blob/master/caps/eth.md#transactions-0x02 or possibly there is a library for us to use to access this protocol

Hi @Daniel_Lipshitz. It sounds like you just want raw access to the devp2p wire protocol data. I would recommend taking a look at https://github.com/ethereumjs/ethereumjs-devp2p specifically their example apps in https://github.com/ethereumjs/ethereumjs-devp2p/tree/master/examples.

It should be relatively straightforward for you to add custom event/logging hooks to the new transaction events that are received over the p2p network.

1 Like

Yes thanks - that looks like exactly what we looking for