Transferring a stream item to a database?

+1 vote
Hi there,

I want to use walletnoitfy to execute a script which transfers the newly written item's value to a MongoDB database.  Is it possible to pass through the item's data contents to do this? If not, can you suggest an alternate method?
asked Mar 14, 2018 by charlieasmith96

1 Answer

0 votes

Yes, if you use the %j parameter, you'll get the full JSON description of the transaction containing the stream item, and can extract all the information from there.

Alternatively, in response to the walletnotify, you can get the item using the getstreamitem command.

answered Mar 15, 2018 by MultiChain
...