Can't send more than xx XCH strange behavior

Hi team, I have a strange behavior with my chia Wallet. I alreadry try to reinstall it on other computer and add more transaction fees with the same error. When I try to send let says 1XCH to other wallet I have this error message :

Exception from 'wallet' {'error': "Can't send more than 663584182446 mojos in a single transaction, got 11000000000000", 'success': False, 'traceback': 'Traceback (most recent call last):\n 
File "/home/dsjohnny/chia/chia-blockchain/chia/rpc/util.py", line 21, in inner\n    res_object = await f(request_data)\n  File "/home/dsjohnny/chia/chia-blockchain/chia/rpc/util.py", line 8
2, in rpc_endpoint\n    return await func(self, request, *args, tx_config=tx_config, extra_conditions=extra_conditions, **kwargs)\n  File "/home/dsjohnny/chia/chia-blockchain/chia/rpc/wallet
_rpc_api.py", line 1045, in send_transaction\n    tx: TransactionRecord = await wallet.generate_signed_transaction(\n  File "/home/dsjohnny/chia/chia-blockchain/chia/wallet/wallet.py", line
450, in generate_signed_transaction\n   transaction = await self._generate_unsigned_transaction(\n  File "/home/dsjohnny/chia/chia-blockchain/chia/wallet/wallet.py", line 301, in generate
unsigned_transaction\n    raise ValueError(f"Can't send more than {max_send} mojos in a single transaction, got {total_amount}")\nValueError: Can't send more than 663584182446 mojos in a s
ingle transaction, got 11000000000000\n'}:

If I try to send less than the maximum (in my case 663584182446 mojos), it works but next time the maximum has decrease again. Now I am very low on what I can send :-(. I tryied to install the windows application and had the same problem. Here is the command I send : chia wallet send -a 0.5 -t xch1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Do you have any idea to help me ? I use Chia version 2.1.1

The error message is poorly phrased. The inability to send this amount stems from the need to accumulate many tiny coins for a transfer, and the transaction is limited by number of inputs. It might help if you make another smaller transfer to your own wallet. This should consolidate tiny coins into a larger one, enabling you to subsequently make a larger transaction.

thanks for you answer I tried to send me a small amount :

chia wallet send -a 0.1 -m 0.005 -t xch1tclaxs7s5kke7f94haxrcdqm59s7aty832lxrxglf3k5er08mkpsyym8ng
Submitting transaction...
Transaction submitted to nodes: [{'peer_id': 'f35a4d10a1ba89923aa0794f7c1496b13ac0db2d9c071e0412b2659489e195c0', 'inclusion_status': 'SUCCESS', 'error_msg': None}]
Run 'chia wallet get_transaction -f 4244283833 -tx 0x344d970bcd19fb016f569c3bda4096ba5822066bcdbab2a472b5243c374d6866' to get status

it works then I tried to send 10 XCH to my other wallet with the same error as prior :

(venv) dsjohnny@nuc:~/chia/chia-blockchain$ chia wallet send -a 10 -m 0.005 -t xch1fgj94uhsjqefmkeu0k9dryaglvkwkwt4z7xyremysjpd93umn6qqzrzsnl
Submitting transaction...
Exception from 'wallet' {'error': "Can't send more than 288185953820 mojos in a single transaction, got 10005000000000", 'success': False, 'traceback': 'Traceback (most recent call last):\n 
 File "/home/dsjohnny/chia/chia-blockchain/chia/rpc/util.py", line 21, in inner\n    res_object = await f(request_data)\n  File "/home/dsjohnny/chia/chia-blockchain/chia/rpc/util.py", line 8
2, in rpc_endpoint\n    return await func(self, request, *args, tx_config=tx_config, extra_conditions=extra_conditions, **kwargs)\n  File "/home/dsjohnny/chia/chia-blockchain/chia/rpc/wallet
_rpc_api.py", line 1045, in send_transaction\n    tx: TransactionRecord = await wallet.generate_signed_transaction(\n  File "/home/dsjohnny/chia/chia-blockchain/chia/wallet/wallet.py", line 
450, in generate_signed_transaction\n    transaction = await self._generate_unsigned_transaction(\n  File "/home/dsjohnny/chia/chia-blockchain/chia/wallet/wallet.py", line 301, in _generate_
unsigned_transaction\n    raise ValueError(f"Can\'t send more than {max_send} mojos in a single transaction, got {total_amount}")\nValueError: Can\'t send more than 288185953820 mojos in a s
ingle transaction, got 10005000000000\n'}:
Traceback (most recent call last):
  File "/home/dsjohnny/chia/chia-blockchain/chia/cmds/cmds_util.py", line 119, in get_any_service_client
    yield node_client, config
  File "/home/dsjohnny/chia/chia-blockchain/chia/cmds/cmds_util.py", line 235, in get_wallet_client
    yield wallet_client, new_fp, config
  File "/home/dsjohnny/chia/chia-blockchain/chia/cmds/wallet_funcs.py", line 301, in send
    res = await wallet_client.send_transaction(
  File "/home/dsjohnny/chia/chia-blockchain/chia/rpc/wallet_rpc_client.py", line 218, in send_transaction
    res = await self.fetch("send_transaction", send_dict)
  File "/home/dsjohnny/chia/chia-blockchain/chia/rpc/rpc_client.py", line 61, in fetch
    raise ValueError(res_json)
ValueError: {'error': "Can't send more than 288185953820 mojos in a single transaction, got 10005000000000", 'success': False, 'traceback': 'Traceback (most recent call last):\n  File "/home
/dsjohnny/chia/chia-blockchain/chia/rpc/util.py", line 21, in inner\n    res_object = await f(request_data)\n  File "/home/dsjohnny/chia/chia-blockchain/chia/rpc/util.py", line 82, in rpc_en
dpoint\n    return await func(self, request, *args, tx_config=tx_config, extra_conditions=extra_conditions, **kwargs)\n  File "/home/dsjohnny/chia/chia-blockchain/chia/rpc/wallet_rpc_api.py"
, line 1045, in send_transaction\n    tx: TransactionRecord = await wallet.generate_signed_transaction(\n  File "/home/dsjohnny/chia/chia-blockchain/chia/wallet/wallet.py", line 450, in gene
rate_signed_transaction\n    transaction = await self._generate_unsigned_transaction(\n  File "/home/dsjohnny/chia/chia-blockchain/chia/wallet/wallet.py", line 301, in _generate_unsigned_tra
nsaction\n    raise ValueError(f"Can\'t send more than {max_send} mojos in a single transaction, got {total_amount}")\nValueError: Can\'t send more than 288185953820 mojos in a single transa
ction, got 10005000000000\n'}

did I miss something ?
I tried several time to send me small amount and I see that the money is still not usable on my wallet :

Chia Wallet:
   -Total Balance:         10.868105869508 xch (10868105869508 mojo)
   -Pending Total Balance: 10.867555869508 xch (10867555869508 mojo)
   -Spendable:             9.867555154303 xch (9867555154303 mojo)
   -Type:                  STANDARD_WALLET
   -Wallet ID:             1

May be I need to wait that the spendable reach the total balance to try again ?

If you just send the same amount it will use the same coin for the transfer and ignore smaller inputs. In the original error it say you can send 663584182446 mojo it is 0.66 xch. Start from this amount and gradually increase it.

2 Likes

It seems it works ! thanks a lot Dawson you are awesome !

1 Like