New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@kokosro/mempool-watch

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kokosro/mempool-watch

Geth RPC mempool watcher

0.2.1
latest
Version published
Maintainers
1
Created

@kokosro/mempool-watch

Watch pending transactions in mempool for any contract

usage


const { MempoolWatch } = require('@kokosro/mempool-watch');

// ... init ethers provider and contract to watch events for

// provider
// contract


const mempoolWatch = new MempoolWatch({ provider });

mempoolWatch.start();

mempoolWatch.subscribe(contract);

contract.mempool.on('ContractEvent', contractEventListener);


Keywords

FAQs

Package last updated on 01 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts