SendAssetFrom [-6] Insufficient funds

+1 vote

Hi Guys,

First of all thank you, is an incredible project !

My question is:
How make correct transfer between Issue Address.

When i create an issue, exactly equal to tutorials, i cant make any transfer between compatible accounts.

My Issue is successfuly created, i saw the balance like exaple below:

            {
                "name": "romano4",
                "assetref": "680-593-63283",
                "qty": 570
            },
            {
                "assetref": "",
                "qty": 0,
                "raw": 0
            }

But the values "assetref" "qty" "raw" not update. I have almost 100% of sure that problem is my chain  mining configuration.

Blockchain params

{
    "chain-protocol" : "multichain",
    "chain-description" : "xxxxx",
    "root-stream-name" : "root",
    "root-stream-open" : true,
    "chain-is-testnet" : false,
    "target-block-time" : 15,
    "maximum-block-size" : 8388608,
    "default-network-port" : xxxx,
    "default-rpc-port" : xxxx,
    "anyone-can-connect" : true,
    "anyone-can-send" : false,
    "anyone-can-receive" : false,
    "anyone-can-receive-empty" : true,
    "anyone-can-create" : false,
    "anyone-can-issue" : false,
    "anyone-can-mine" : false,
    "anyone-can-activate" : false,
    "anyone-can-admin" : false,
    "support-miner-precheck" : true,
    "allow-arbitrary-outputs" : false,
    "allow-p2sh-outputs" : true,
    "allow-multisig-outputs" : true,
    "setup-first-blocks" : 60,
    "mining-diversity" : 0.30000000,
    "admin-consensus-upgrade" : 0.50000000,
    "admin-consensus-admin" : 0.50000000,
    "admin-consensus-activate" : 0.50000000,
    "admin-consensus-mine" : 0.50000000,
    "admin-consensus-create" : 0.00000000,
    "admin-consensus-issue" : 0.00000000,
    "lock-admin-mine-rounds" : 10,
    "mining-requires-peers" : true,
    "mine-empty-rounds" : 10.00000000,
    "mining-turnover" : 1.00000000,
    "first-block-reward" : -1,
    "initial-block-reward" : 100000000000000,
    "reward-halving-interval" : 60,
    "reward-spendable-delay" : 1,
    "minimum-per-output" : 0,
    "maximum-per-output" : 100000000000000,
    "minimum-relay-fee" : 25,
    "native-currency-multiple" : 100000000,
    "skip-pow-check" : false,
    "pow-minimum-bits" : 8,
    "target-adjust-freq" : -1,
    "allow-min-difficulty-blocks" : false,
    "only-accept-std-txs" : true,
    "max-std-tx-size" : 4194304,
    "max-std-op-returns-count" : 10,
    "max-std-op-return-size" : 2097152,
    "max-std-op-drops-count" : 5,
    "max-std-element-size" : 8192,
    "chain-name" : "pagchain",
    "protocol-version" : 10009,
    "network-message-start" : "f0d0d7f2",
    "address-pubkeyhash-version" : "006e5b21",
    "address-scripthash-version" : "05bf80dd",
    "private-key-version" : "800f1f7d",
    "address-checksum-value" : "2709b1f2",
    "genesis-pubkey" : "02e5cb3d73c07db36fa1f68279a6efef4912d0ce436e3943476c1649d230cc6500",
    "genesis-version" : 1,
    "genesis-timestamp" : 1512844305,
    "genesis-nbits" : 536936447,
    "genesis-nonce" : 99,
    "genesis-pubkey-hash" : "096dcab70ed4b7813aee44fca58bd845d13eddf3",
    "genesis-hash" : "00c44e89f5e36d9c1848797acfac6595ba1603a1e742e6ceedcbcf4323535476",
    "chain-params-hash" : "d4c45a5e24f77d965c659bbb6074ca4fdbe659996605a1870e348cc34f44ee16"
}

Can you guys help/clarify ?

Greetings from Brazil !

 

asked Dec 27, 2017 by Dsouza

1 Answer

0 votes

You can check for unconfirmed transactions by checking if there are items in the output from getrawmempool.

If mining has stopped, the most likely reason is that the setup period has ended, more than one address has mine permissions, and so the mining-requires-peers setting is activating, to say that mining will only be done by nodes which are connected to other nodes.

You can confirm by checking the output from getinfo, if the blocks value is around 60.

answered Dec 29, 2017 by MultiChain
Sorry for delay.

I finded a solution, i used command "send" to send "0.0" amount for just created address, like an validation.

That's could be an good approach?

Thank you!
What version of MultiChain were you using when you saw this problem?
My solution not work, i sent 0.0 only to try... I think send an raw amount "1" works, .
multichain-1.0.2
Thanks. We're still trying to understand what exactly is the problem. Can you provide a step-by-step explanation of what you do, and what you see that differs from what you would expect.
ok,

1 - Create an open Asset .
2 - After i i've created the asset, created another address to receive that asset coins.
3 - i used the SendAssetFrom command to transfer.
4 - occurs [-6] Insufficient funds error.

If i sent an raw amount greater than 0.0 it's works
Thanks. Do you mean if you include a non-zero native amount in the sendassetfrom call, then it works, but if you don't then it does not?
Yes !

I understand. It's simple. I need an raw amount to send my non native assets. That make all the sense for me.

There some config to make this event non need to have an raw amount to transfer non native Issue assets(created with Issue command).

All the best!
...