API call return a Promise
. Resolve is guaranteed to get called
with a result
object, even if user closes the window, network connection times
out, etc. In case of failure result.success
is set to false and result.payload.error
is
the error message. It is recommended to log the error message and let user
restart the action.
Every method require an Object
with combination of common
fields and method specific fields.
- TrezorConnect.getPublicKey
- TrezorConnect.requestLogin
- TrezorConnect.cipherKeyValue
- TrezorConnect.wipeDevice
- TrezorConnect.resetDevice
- TrezorConnect.getAddress
- TrezorConnect.getAccountInfo
- TrezorConnect.composeTransaction
- TrezorConnect.signTransaction
- TrezorConnect.pushTransaction
- TrezorConnect.signMessage
- TrezorConnect.verifyMessage
- TrezorConnect.ethereumGetAddress
- TrezorConnect.ethereumSignTransaction
- TrezorConnect.ethereumSignMessage
- TrezorConnect.ethereumVerifyMessage
- TrezorConnect.liskGetAddress
- TrezorConnect.liskSignMessage
- TrezorConnect.liskVerifyMessage
- TrezorConnect.liskSignTransaction