Post
Share your knowledge.
How can I merge Sui coins for a move call without gas issues?
I'm trying to make a move call where one argument requires a mutable Coin
- Move CLI
- Move
Answers
2Have you tried using merge coins
functionality? It could potentially merge your coins without causing any conflicts with gas requirements. This feature was added to reduce the hassle of manual coin management. The process is designed to represent what you want in the transaction while deferring the source of the coins until you build and sign the transaction.
You don't need to manage coins manually. You can simply use coinWithBalance
, and the SDK will handle finding and merging the coins for you automatically. Try specifying the coin you want to use for paying the fees separately, as this might resolve the issue with the gas. Here's the SDK documentation link for more information: Gas Payment.
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