scoin / multichain-node

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

Unable to call listAssetTransactions #22

Closed maleficarum closed 6 years ago

maleficarum commented 6 years ago

I'm calling the method listAssetTransactions as follows

javascript multichain.listAssetTransactions({"asset":"MyAsset"}, (error, transactions) => { console.log(transactions); });

And I got the next error

{ code: -703, message: 'Not subscribed to this asset' }

I assume that I have to subscribe to 'MyAsset', but there is no method in the API to do that. am I missing some step ?

scoin commented 6 years ago

There is a subscribe method. Provide it with params {stream: "MyAsset"}