On this page

latest contributor to this doc

Last Edit:

@gcharang

Cancel Trezor Initialization Task

API-v2task::init_trezor::cancel

Use the task::init_trezor::cancel method to cancel the initialisation task.

Parameter* = requiredTypeDescription
task_id*
integer
The identifying number returned when initiating the initialisation process.

Parameter* = requiredTypeDescription
error
string
Optional. Description of the error
error_data
string
Optional. Additonal context for the error type
error_path
string
Optional. Used for debugging. A reference to the function in code base which returned the error
error_trace
string
Optional. Used for debugging. A trace of lines of code which led to the returned error
error_type
string
Optional. An enumerated error identifier to indicate the category of error
result
string
Optional. Returns with value success when successful, otherwise returns the error values below

Cancel Trezor Initialization Task

POST
task::init_trezor::cancel
{
  "userpass": "RPC_UserP@SSW0RD",
  "mmrpc": "2.0",
  "method": "task::init_trezor::cancel",
  "params": {
    "task_id": 0
  }
}

{
  "mmrpc": "2.0",
  "result": "success",
  "id": null
}

{
  "mmrpc": "2.0",
  "error": "Task is finished already",
  "error_path": "init_hw.manager",
  "error_trace": "init_hw:209] manager:104]",
  "error_type": "TaskFinished",
  "error_data": 0,
  "id": null
}