Canceling a task prevents it from executing in the future.
Useful when:
Task logic is no longer needed.
You made a mistake in the task parameters.
You want to avoid draining your wallet from recurring executions.
supra move automation cancel \ --task-index <TASK_INDEX> \ --rpc-url <TESTNET or MAINNET>
Parameter Guide
--task-index: The unique identifier of the task you want to cancel. Each task is assigned an index when registered.
--task-index:
How do you find your --task-index?
--task-index
To find your task index:
Go to SupraScanarrow-up-right
Enter your deployer address
Navigate to the “Tasks” tab
Locate the active task you want to cancel
Find the Task ID value listed with the task details
You’ll use this index in your cancel command.
supra move automation cancel \ --task-index 347 \ --rpc-url https://rpc-testnet.supra.com
If you see this:
"vm_status": "Executed successfully"
You have successfully cancelled the automation task!
The task is no longer active
No additional executions will occur
You won’t be charged automation or gas fees for that task anymore
Visit SupraScanarrow-up-right
Search your deployer address
Navigate to the Tasks tab or check your function call history
Confirm that the automated function is no longer executing
If you still see executions, double-check that the correct task was cancelled using right --task-index
Last updated 8 months ago