Error Message "Change address not found" when using sendassetfrom

+1 vote
I'm trying to run a simple Curl command to transfer an asset between two addresses; here the command

sudo curl -s --user multichainrpc:PASSWORD --data-binary '{"jsonrpc": "1.0", "id":"voting-step-1", "method": "sendassetfrom", "params": ["17vgTofeu9MM3ogktLJbM1Arj9zMEdgzAX9Cgw","18px5yMFWZ33FDeBhHtUQ4ZvMMZacDB9rakgjN", "token", 1] }' -H "content-type: text/plain;" http://127.0.0.1:7442/

The address 17vgTofeu9MM3ogktLJbM1Arj9zMEdgzAX9Cgw has enough assets; here's its getaddressbalances:

[
    {
        "name" : "token",
        "assetref" : "36-265-2654",
        "qty" : 9998.00000000
    }
]

And the second address 18px5yMFWZ33FDeBhHtUQ4ZvMMZacDB9rakgjN has no assets.

I get the following error and there's no resource on the Internet explaining why I'm getting this error.

{"result":null,"error":{"code":-4,"message":"Change address not found"},"id":"voting-step-1"}

 

Thanks,
asked Oct 31, 2016 by Mj

1 Answer

+1 vote
I think this means that the address also needs receive permission in the blockchain, because it will be receiving some of the funds back as part of the transaction - that part which is not sent to the recipient.
answered Nov 1, 2016 by MultiChain
Thank you!
This indeed resolved the issue.
...