Insufficient funds multichain

+2 votes
Hi, i created an asset with 350000000 balance but the problem is whenever i try to send any amount to another wallet using the method sendassetsfrom , i always get this message Insufficient funds.
Although another wallet with another asset and balance is 500000 when that person send it works fine.
What's the solution?
And another question is after i issued an asset with 500000 balance i want to issue more but the problem the asset is not open. how can i make it open?
asked Jun 19, 2018 by Ys3

1 Answer

0 votes

To answer the last question first, if an asset was issued as closed, it cannot be changed to be open. (If that was possible, it would take away from the whole point of it being closed.)

The insufficient funds problem could be (a) that you are trying to send from the wrong address in the wallet, i.e. not the one with that balance, or (b) that you have a native currency on your blockchain and a fee policy, and this wallet has insufficient native currency to cover the desired transaction fee.

If neither of these explain the problem please post here the output of listassets, the output of getmultibalances, and the sendassetfrom command you are trying to run.

answered Jun 19, 2018 by MultiChain
For the asset when i do listassets it shows this
           Array
(
    [0] => Array
        (
            [name] => KCN
            [issuetxid] => 98b01f6d1ea5e173d24134233626cb09cda0b78bf1cdcb417267fd33c58e7f4e
            [assetref] => 242-266-45208
            [multiple] => 1
            [units] => 1
            [open] =>
            [details] => Array
                (
                )

            [issueqty] => 100000000
            [issueraw] => 100000000
            [subscribed] => 1
            [synchronized] => 1
            [transactions] => 11
            [confirmed] => 11
            [issues] => Array
                (
                    [0] => Array
                        (
                            [txid] => 98b01f6d1ea5e173d24134233626cb09cda0b78bf1cdcb417267fd33c58e7f4e
                            [qty] => 100000000
                            [raw] => 100000000
                            [details] => Array
                                (
                                )

                            [issuers] => Array
                                (
                                    [0] => 1G9d2vPC8NXTpgq6ruALwWi4EBxgKh5LN4gbg7
                                )

                        )

                )

        )

)

it's not motioned if it's open or close. so is there a possibility of open it?

this is the output of the wallet

Array
(
    [1NgjcXYzmEqi2NU5tkcTQU25nRP3WqVRAsdKxs] => Array
        (
            [0] => Array
                (
                    [name] => KCN
                    [assetref] => 242-266-45208
                    [qty] => 0
                )

            [1] => Array
                (
                    [name] => KCN
                    [assetref] => 550-266-49731
                    [qty] => 350000000
                )

        )

    [total] => Array
        (
            [0] => Array
                (
                    [name] => KCN
                    [assetref] => 242-266-45208
                    [qty] => 0
                )

            [1] => Array
                (
                    [name] => KCN
                    [assetref] => 550-266-49731
                    [qty] => 350000000
                )

        )

)





and am trying to run
sendassetfrom("1NgjcXYzmEqi2NU5tkcTQU25nRP3WqVRAsdKxs","another wallet","KCN",10)
It looks like you have two assets here, with almost identical names - "KCN" and "KCN " (with an extra space at the end). This wallet has units of "KCN " but not "KCN", and this is why you're getting the error about insufficient funds.

On the other issue, the "open" flag on that asset is "false" - it's just that PHP's print_r() function (which you appear to be using) doesn't show anything for false values.
First problem related to KCN is solved thanks a lot.
How about the second? False means it's closed? Does it means I can't issue more?
And side not when i create new asset how i set it up as open in the future?
Yes, false means you cannot issue more. See the documentation on the 'issue' command here for information on how to create an open asset:

https://www.multichain.com/developers/json-rpc-api/
...