Post
Share your knowledge.
How to merge two Coins using the SUI client without extra gas?
I'm trying to merge two Coin
s using the SUI client, but I'm running into an issue. The client requires at least one Coin
for gas, making it seem impossible to merge exactly these two Coin
s because I don't have any additional ones for gas. Has anyone else experienced this, and how did you solve it?
- Move CLI
- Move
Answers
2If you're using the TS SDK, it might automatically use all your coins as long as they're not engaged in the transaction. It can be challenging with exactly 2 coins, but if you set it up correctly, it should work. Despite initial difficulties, it seems that once you try again or follow the correct process, the sui client merge-coins
function can work effectively.
Gas coins are automatically merged, so if you execute an empty transaction with your coins used for gas, you will end up with a single coin. The SUI client (CLI) only lets you specify one Coin to be used for gas. You might try executing without specifying any coin, or make sure the transaction automatically computes the necessary coins.
Do you know the answer?
Please log in and share it.
Move is an executable bytecode language used to implement custom transactions and smart contracts.

- ... SUIderiss+5
- ... SUIRamirez+5
- ... SUIElvin CLONE +5
- ... SUI
- ... SUI
- ... SUI
- ... SUIBritain+2