0.2.1 • Published 2 years ago

@kokosro/mempool-watch v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 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

2 years ago

0.2.0

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago