0.2.1 • Published 3 years ago

@kokosro/mempool-watch v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@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);
0.2.1

3 years ago

0.2.0

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago