Trezor Connection Status
API-v2trezor_connection_status
The trezor_connection_status method reports the real-time connection state of a Trezor hardware wallet that was previously initialized (see task::init_trezor::*).
| Parameter* = required | Type | Description |
|---|---|---|
| device_pubkey | string | Optional. Expected public key of the Trezor device. If specified and a *different* device is connected, an error is returned. |
| Parameter* = required | Type | Description |
|---|---|---|
| status* | string | One of: Connected, Disconnected, Busy. |
Trezor Connection Status
POST
trezor_connection_status{
"userpass": "RPC_UserP@SSW0RD",
"mmrpc": "2.0",
"method": "trezor_connection_status",
"id": 0
}
{
"mmrpc": "2.0",
"result": {
"status": "Connected"
},
"id": 0
}
| Parameter* = required | Type | Description |
|---|---|---|
| FoundUnexpectedDevice | string | Optional. A connected device does not match the supplied device_pubkey. |
| Internal | string | Optional. Unhandled internal error. |
| TrezorNotInitialized | string | Optional. A Trezor device has not been initialized on this node. |