Cancel MetaMask Connection Task
API-v2task::connect_metamask::cancel
Use task::connect_metamask::cancel
to abort the MetaMask initialisation task.
Parameter* = required | Type | Description |
---|---|---|
task_id* | integer | The identifying number returned when the task was first initiated. |
Parameter* = required | Type | Description |
---|---|---|
error | string | Optional. Description of the error. |
error_data | string | Optional. Additional 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 success on success, otherwise the standard error fields below are populated. |
Cancel MetaMask Connection Task
POST
task::connect_metamask::cancel{
"mmrpc": "2.0",
"method": "task::connect_metamask::cancel",
"params": {
"task_id": 42
},
"id": 1,
"userpass": "RPC_UserP@SSW0RD"
}
{
"mmrpc": "2.0",
"result": "success",
"id": 1
}
{
"mmrpc": "2.0",
"error": "Task is finished already",
"error_path": "init_metamask.manager",
"error_trace": "init_metamask:215] manager:104]",
"error_type": "TaskFinished",
"error_data": 42,
"id": 1
}