Right now, when using the Sui CLI to send SUI (for example with sui client pay-sui
or sui client pay-all-sui
), I have to manually list the coin IDs using --input-coins
. In the Sui Wallet, I only enter the amount and the address, and it picks the coins for me. I expected the CLI to work the same way: just give the amount and address, and the CLI picks the coins. It would make sending much easier, especially when I have many small coins. I think it still makes sense that transfer-sui
needs a coin ID, but for pay-sui
it feels more natural that the CLI should “just do it” without needing manual input. Please add this feature!
Also, how should payments be handled properly?
You want to have multiple SUI coin objects so you can send transactions in parallel. But if developers always merge coins before every transaction, it slows down the blockchain.
The best way is if the software first tries to find a coin with enough balance, and only merges coins when really needed.
However, many developers are lazy and will not do this extra work.