preparelockunspent syntax

0 votes
I’m testing the DvP transaction on the UI but I get a parsing error when I try to lock the unspent output in a format like:

preparelockunspent {“asset1”:100}

or

preparelockunspent {“181-267-3429”:100}

so it doesn’t matter if I use the asset name or refid, I get a JSON parsing error.
asked Sep 14, 2015 by anonymous

1 Answer

0 votes

These are JSON parameters so you need to pass them in single quotes, e.g.:

preparelockunspent '{"asset1":100}'

See the 'Getting Started' page on the MultiChain site for more examples. 

answered Sep 14, 2015 by MultiChain
prepareunlockspent in C# with RPC
...