You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 14, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 14, 2021. It is now read-only.
constEth=require('ethjs');consteth=newEth(newEth.HttpProvider('http://localhost:8545'));constfilter=neweth.filter.PendingTransactionFilter().new().then((result)=>{// result <BigNumber ...> filterId}).catch((error)=>{// result null});constwatcher=filter.watch((error,result)=>{// result null ['0xfd234829...', '0xsf2030d1...']});watcher.stopWatching(cb);filter.uninstall().then((result)=>{// result true}).catch((error)=>{// result null});
Error
$ node index.js
index.js:13
const watcher = filter.watch((error, result) => { ^TypeError: filter.watch is not a function at Object.<anonymous> (/index.js:13:24) at Module._compile (module.js:571:32) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:488:32) at tryModuleLoad (module.js:447:12) at Function.Module._load (module.js:439:3) at Module.runMain (module.js:605:10) at run (bootstrap_node.js:423:7) at startup (bootstrap_node.js:147:9) at bootstrap_node.js:538:3
Fetching pending transactions doesn't work at all. Had the same problem and also did the same as you did and spent 1 whole day with it. I think this issue should be in ethjs-filter repository.
On Jan 3, 2018, at 8:26 PM, Chi-Hao Poon ***@***.***> wrote:
Fetching pending transactions doesn't work at all. Had the same problem and also did the same as you did and spent 1 whole day with it. I think this issue should be in ethjs-filter repository.
Made an issue here:
ethjs/ethjs-filter#5
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
Code example is from user guide
Error