command to send asset to an address?

+1 vote

I issued the following asset

[
    {
        "name" : "xcoin",
        "issuetxid" : "aed989fe338eb44a141719888e4f7ece0423095aa1546c08f3615cbcca3834fd",
        "assetref" : "1743-301-55726",
        "multiple" : 100,
        "units" : 0.01000000,
        "details" : {
        },
        "issueqty" : 10000.00000000,
        "issueraw" : 1000000
    }
]

I'm getting errors while trying to send the asset to another address. I tried the following commands:

  • sendassettoaddress "1JrTyhkiNGLmkAcps1tAYknxHLZ2A88hCG" "xcoin" 100 0.1 "donation" "node2"
    error: {"code":-4,"message":"Insufficient funds, but there are coins belonging to addresses without send permission."}
  • sendassettoaddress "1JrTyhkiNGLmkAcps1tAYknxHLZ2A88hCG" 1743-301-55726 100 0.1 "donation" "node2"
    error: {"code":-4,"message":"Insufficient funds, but there are coins belonging to addresses without send permission."}
  • sendwithmetadata 1JrTyhkiNGLmkAcps1tAYknxHLZ2A88hCG '{"xcoin":100}' 48692066726f6d204d756c7469436861696e21
    error: {"code":-4,"message":"Transaction output value too small"}
  • sendtoaddress "1JrTyhkiNGLmkAcps1tAYknxHLZ2A88hCG" '{"xcoin":100}' "donation" "node2"
    error: {"code":-4,"message":"Transaction output value too small"}
asked Mar 25, 2016 by Cypher

1 Answer

+1 vote
 
Best answer

That params.dat file should allow anyone to send, but the error message you saw suggests MultiChain is still checking for send permission. So it looks like a straightforwards bug that we should fix in the next version. In the meantime try explicitly granting send permissions to the address which currently holds the assets.

answered Mar 25, 2016 by MultiChain
selected Apr 21, 2016 by Cypher
...