preparelockunspentfrom issue

+2 votes

I'm to perform the preparelockunspentfrom command but get the following API error:

  • (-6) Insufficient funds

{"method":"preparelockunspentfrom","id":"5db43915-c4c4-4c88-a68d-46411f1450c7","chain_name":"sandboxChain","params":["1LaSRFuxvoi7PgoStkTJU4ZVYkfZ14Z7K955HW",{"EUR":0.1},true]}

{"result":null,"error":{"code":-6,"message":"Insufficient funds"},"id":"17bbc46d-79e6-47f5-bcf9-ad952234a8d4"}

Checking the address balances I have sufficient funds to perform this action.

{"method":"getmultibalances","id":"af58cae9-44c2-4bdd-964a-3fae199fa65e","chain_name":"sandboxChain","params":["1LaSRFuxvoi7PgoStkTJU4ZVYkfZ14Z7K955HW","EUR"]}

{"result":{"1LaSRFuxvoi7PgoStkTJU4ZVYkfZ14Z7K955HW":[{"name":"EUR","assetref":"422-267-4806","qty":98988036.35000001}],"total":[{"name":"EUR","assetref":"422-267-4806","qty":98988036.35000001}]},"error":null,"id":"d3fb2bcb-11c0-4dd9-94ad-c465e8a02f23"}

Also used listunspent and listlockunspent and I can't figure why I can't perform the lock.


listlockunspent

{"chain_name":"sandboxChain","id":"657dc317-7835-407b-9405-63fae5a20d29","method":"listlockunspent","params":[]}

{"result":[],"error":null,"id":"5d6318cf-734a-4784-b51d-45f42195fb89"}


listunspent

{"method":"listunspent","id":"92b7a5fa-6b8b-4d1e-beed-07358cc546a0","chain_name":"sandboxChain","params":[1,999999,["1LaSRFuxvoi7PgoStkTJU4ZVYkfZ14Z7K955HW"]]}

{"method":"listunspent","id":"50363ffc-6ab4-4f8d-9d7f-ca183523779a","chain_name":"sandboxChain","params":[1,999999,["1LaSRFuxvoi7PgoStkTJU4ZVYkfZ14Z7K955HW"]]}


The information about the asset

{"result":[{"name":"EUR","issuetxid":"c612fd6431e521581554ca12ca26daa572718a1aa51ed94b015c13cb23077aa0","assetref":"422-267-4806","multiple":100,"units":0.01000000,"open":true,"details":{},"issueqty":100099999999.00000000,"issueraw":10009999999900,"subscribed":false}],"error":null,"id":"6e6290b5-86c6-4bbf-863f-e6088f2520c7"}

Running Multichain 1.0.7

asked Jan 28, 2019 by jgodinho

1 Answer

0 votes
Are you using a native currency in your blockchain as well? If so you may have insufficient funds of that native currency in order to send the transaction that would isolate the EUR 0.1 in a separate output.

If not, I cannot immediately see the cause here and we could take a look if you're willing to send us the blockchain directory. If so, stop the node, then zip up the blockchain directory and send to multichain dot debug at gmail dot com.
answered Jan 30, 2019 by MultiChain
...