scoin / multichain-node

A simple wrapper for Multichain's JSON RPC api that parses your input.
MIT License
73 stars 54 forks source link

TypeError: multichain.liststreamitems is not a function #29

Open mistral61 opened 6 years ago

mistral61 commented 6 years ago

I'm beginning to use multichain-node, for publish and listaddresses all working , i tried liststreamitems (also liststreamkeyitems) and i got the error in the subject. My code;: multichain.liststreamkeyitems({ stream: 'food', key: 'usr1' }, (err, info) => { if(err){ console.log(err); throw err; }else{ console.log('Response publish: ' + info); response.json({ transactionId: info }); } })

Not a function? what is wrong in my code?

Anurag98k commented 5 years ago

See commands.js for the function signatures. It is listStreamItems, all of them are in camel case.