Move.

Post

Share your knowledge.

farshad.
Feb 05, 2025
Expert Q&A

Why do I keep getting 'MoveAbort' error in signAndExecuteTransaction?

I'm trying to make swaps using the functions client.findRouters, client.fastRouterSwap, and client.signAndExecuteTransaction but frequently encounter the 'MoveAbort' error. My balance seems stable at 100+ SUI, yet 1 out of 10 transactions fails. This error still persists after restoring the blockchain. How can I figure out what's going wrong?

  • Move CLI
  • Move
  • Move Module
4
3
Share
Comments
.

Answers

3
yhant3.
Feb 5 2025, 11:03

The error you are encountering likely indicates that the 'split' function is being called during the transaction process and the balance may not be sufficient, even if it appears stable. Checking your coin objects and the methods you're calling, along with the arguments passed, might provide more insights. You might also consider tracking your objects throughout the transaction process to diagnose the issue.

4
Best Answer
Comments
.
Raju.
Raju159
Feb 5 2025, 11:02

The error 'MoveAbort(MoveLocation { module: ModuleId { address: [..], name: Identifier("balance") }, function: 7, instruction: 10, function_name: Some("split") }, 2)' suggests that there might be an issue with the balance not being enough when a split operation is attempted. You may want to ensure all parts of your balance are accounted for in every transaction.

3
Comments
.
DuAn.
Feb 5 2025, 11:03

You should definitely check the objects involved in the transactions and monitor their states closely. Also, reviewing the specific transaction details on SuiScan could provide additional clues.

1
Comments
.

Do you know the answer?

Please log in and share it.

We use cookies to ensure you get the best experience on our website.
More info