Register your Automation Task

Make sure the contract is published before registering automation — otherwise, the system won’t be able to find your function.

Before registering for real, test the task using --simulate:

supra move automation register --simulate \
  --task-max-gas-amount 5000 \
  --task-gas-price-cap 200 \
  --task-expiry-time-secs 1748035485 \
  --task-automation-fee-cap 1440000000\
  --function-id "0x123::auto_incr::auto_increment" \
  --rpc-url https://rpc-testnet.supra.com

If you see:

"vm_status": "Executed successfully"

Post-Deployment: Sanity Check

Once you've registered your automation task, you’ll want to confirm it’s actually working.

  • Use SupraScan

    • Visit SupraScan

    • Search your deployer address

    • Check Tasks Tab.

    • Confirm your task is executing at the expected intervals

  • Run the View Function

To check your counter value, run this CLI command:

supra move tool view \
  --function-id '0x123::auto_incr::get_counter_value' \
  --args address:0x123 \
  --rpc-url https://rpc-testnet.supra.com

Before the automation task starts:

{
"result": [
"0"
]
}

After the automation task starts:

{
  "result": [
    "1"
  ]
}

Last updated