Join our
Discord!
LogoLogo
SupraScan ExplorerStarKey WalletDiscord
  • Network
  • Oracles
  • Automation
  • SupraNova
  • AI Agents
  • Overview
  • Getting Started
  • API Reference
  • Smart Contract Integration
  • Your First Automation Task
    • Prerequisites & Epoch Timing
    • Create the Move Smart Contract
    • Calculate task-expiry-time & task-automation-fee
    • Register your Automation Task
    • Canceling Your Automation Task
  • Use Cases of AutoFi
  • Glossary
  • FAQs
Powered by GitBook

Links

  • Whitepapers
  • Bug Bounty
  • Security Audits

‎

  • Supra Dev Hub
  • Supra Labs Github
  • Entropy Foundation Github
On this page
  • After Canceling
  • Post-Cancel: Sanity Check
Edit on GitHub
  1. Your First Automation Task

Canceling Your Automation Task

PreviousRegister your Automation TaskNextUse Cases of AutoFi

Last updated 13 days ago

Why Cancel?

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.

1

Run the Cancel Command

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.

How do you find your --task-index?

To find your task index:

  1. Go to

  2. Enter your deployer address

  3. Navigate to the “Tasks” tab

  4. Locate the active task you want to cancel

  5. Find the Task ID value listed with the task details

You’ll use this index in your cancel command.

2

Understand Parameters

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!

After Canceling

  • The task is no longer active

  • No additional executions will occur

  • You won’t be charged automation or gas fees for that task anymore

Post-Cancel: Sanity Check

  • Visit

  • 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

SupraScan
SupraScan