@exodus/hw-common
Version: 0.0.0
Classes
AssetUnsupportedError
DeviceConnectionError
DeviceLockedError
DeviceUninitializedError
HardwareWalletError
HardwareWalletManufacturerMismatchError
NoDeviceFoundError
PassphraseProtectionEnableFailedError
SignMessageUnsupportedError
UserRefusedError
WrongWalletSelectedError
XPubUnsupportedError
AssetUnsupportedError
DeviceConnectionError
DeviceLockedError
DeviceUninitializedError
HardwareWalletError
HardwareWalletManufacturerMismatchError
NoDeviceFoundError
PassphraseProtectionEnableFailedError
SignMessageUnsupportedError
UserRefusedError
WrongWalletSelectedError
XPubUnsupportedError
Interfaces
EnsureDeviceReadyParams
GetAddressParams
GetPublicKeyParams
GetXPubParams
HardwareWalletAssetHandler
HardwareWalletDescriptor
HardwareWalletDevice
HardwareWalletDiscovery
Message
MultisigData
SignMessageParams
SignTransactionParams
TokenAccountInfo
EnsureDeviceReadyParams
ensureDeviceReady(params)
Ensures the device is ready for operations on a specific asset.
- For Ledger: ensures the correct application is open
- For Trezor: ensures the correct wallet context (passphrase) is active
GetAddressParams
getAddress(...)
GetPublicKeyParams
getPublicKey(...)
GetXPubParams
getXPub(...)
HardwareWalletAssetHandler
HardwareWalletAssetHandler
HardwareWalletDescriptor
HardwareWalletDescriptor
HardwareWalletDevice
HardwareWalletDevice
HardwareWalletDiscovery
HardwareWalletDiscovery
Message
MultisigData
SignMessageParams
signMessage(...)
SignTransactionParams
signTransaction(...)
TokenAccountInfo
Token account info for Solana hardware wallet signing (Trezor).
Type Aliases
Bytes
EnsureApplicationIsOpenedParams
HardwareWalletDeviceModels
HardwareWalletManufacturer
HardwareWalletSupportEntry
HardwareWalletSupportMatrix
InternalDescriptor
LedgerDescriptorBLE
LedgerDescriptorTCP
LedgerDescriptorWebUSB
LedgerManufacturer
LedgerModels
SignableTransaction
Signatures
TransportTypes
TrezorManufacturer
TrezorModels
Bytes
EnsureApplicationIsOpenedParams
ensureApplicationIsOpened(assetName)
HardwareWalletDeviceModels
HardwareWalletManufacturer
HardwareWalletSupportEntry
HardwareWalletSupportMatrix
HardwareWalletSupportMatrix
This is a map of supported hardware wallets, where the key is the manufacturer and
the value is an object with the supported models.
An object of this type MAY be exposed on asset.baseAsset.api.features.hardwareWallets?.supportMatrix
to indicate the supported hardware wallets and models for the asset.
InternalDescriptor
LedgerDescriptorBLE
LedgerDescriptorTCP
InternalDescriptor
LedgerDescriptorWebUSB
LedgerManufacturer
HardwareWalletManufacturer
LedgerModels
HardwareWalletDeviceModels
SignableTransaction
SignableTransactions are the transactions in serialized format to be signed.
Signatures
Signatures
TransportTypes
TrezorManufacturer
TrezorModels
AssetUnsupportedError
class
Constructor
constructor
AssetUnsupportedError(assetName: string): AssetUnsupportedError
Parameters:
assetName: string
Returns:
AssetUnsupportedErrorProperties
assetName
string
name
string
DeviceConnectionError
class
Constructor
constructor
DeviceConnectionError(cause: Error): DeviceConnectionError
Parameters:
cause: Error
Returns:
DeviceConnectionErrorProperties
name
string
DeviceLockedError
class
Constructor
constructor
DeviceLockedError(): DeviceLockedError
Returns:
DeviceLockedErrorProperties
name
string
DeviceUninitializedError
class
Constructor
constructor
DeviceUninitializedError(): DeviceUninitializedError
Returns:
DeviceUninitializedErrorProperties
name
string
HardwareWalletError
class
Constructor
constructor
HardwareWalletError(message?: string): HardwareWalletError
Parameters:
message (optional): string
Returns:
HardwareWalletErrorParameters:
message (optional): string
options (optional): ErrorOptions
Returns:
HardwareWalletErrorProperties
name
string
HardwareWalletManufacturerMismatchError
class
Constructor
constructor
HardwareWalletManufacturerMismatchError(__namedParameters: any): HardwareWalletManufacturerMismatchError
Parameters:
__namedParameters: any
Properties
actual
string
expected
string
name
string
NoDeviceFoundError
class
Constructor
constructor
NoDeviceFoundError(): NoDeviceFoundError
Returns:
NoDeviceFoundErrorProperties
name
string
PassphraseProtectionEnableFailedError
class
Constructor
constructor
PassphraseProtectionEnableFailedError(): PassphraseProtectionEnableFailedError
Properties
name
string
SignMessageUnsupportedError
class
Constructor
constructor
SignMessageUnsupportedError(): SignMessageUnsupportedError
Returns:
SignMessageUnsupportedErrorProperties
name
string
UserRefusedError
class
Constructor
constructor
UserRefusedError(onDevice: boolean): UserRefusedError
Parameters:
onDevice: boolean
Returns:
UserRefusedErrorProperties
name
string
onDevice
boolean
WrongWalletSelectedError
class
Constructor
constructor
WrongWalletSelectedError(): WrongWalletSelectedError
Returns:
WrongWalletSelectedErrorProperties
name
string
XPubUnsupportedError
class
Constructor
constructor
XPubUnsupportedError(): XPubUnsupportedError
Returns:
XPubUnsupportedErrorProperties
name
string
EnsureDeviceReadyParams
interface
Properties
baseAssetName
string
walletAccount
any
GetAddressParams
interface
GetPublicKeyParams
interface
Properties
assetName
string
derivationPath
string
GetXPubParams
interface
Properties
assetName
string
derivationPath
string
HardwareWalletAssetHandler
interface
Properties
getAddress
any
getPublicKey
any
getXPub
any
signMessage
any
signTransaction
any
HardwareWalletDescriptor
interface
Properties
get
any
internalDescriptor
manufacturer
name
string
transport
HardwareWalletDevice
interface
Properties
cancelAction
any
ensureApplicationIsOpened?
any
ensureDeviceReady
any
getAddress
any
getPublicKey
any
getWalletId?
any
getXPub
any
listInstalledAssetNames
any
listSupportedAssetNames
any
listUseableAssetNames
any
signMessage
any
signTransaction
any
Accessors
descriptor
HardwareWalletDiscovery
interface
Properties
list
any
scan
any
stopScan
any
Message
interface
Properties
rawMessage?
Readonly
MultisigData
interface
Properties
internalXpub
string
threshold
number
xpubs
string[]
SignMessageParams
interface
Properties
assetName
string
derivationPath
string
message
IMessage
SignTransactionParams
interface
Properties
assetName
string
derivationPaths
any
derivationPathsMap?
Record
isNft?
boolean
multisigData?
signableTransaction
tokenAccountsInfos?
TokenAccountInfo
interface
Properties
baseAddress
string
tokenAccount
string
tokenMint
string
tokenProgram
string
Bytes
type
EnsureApplicationIsOpenedParams
type
HardwareWalletDeviceModels
type
HardwareWalletManufacturer
type
HardwareWalletSupportEntry
type
Properties
models
HardwareWalletSupportMatrix
type
InternalDescriptor
type
LedgerDescriptorBLE
type
Properties
localName
string
serviceUUIDs
any
LedgerDescriptorTCP
type
Properties
apduPort
number
LedgerDescriptorWebUSB
type
LedgerManufacturer
type
LedgerModels
type
SignableTransaction
type
Signatures
type
TransportTypes
type
TrezorManufacturer
type
TrezorModels
type
AssetUnsupportedError
class
Constructor
constructor
AssetUnsupportedError(assetName: string): AssetUnsupportedError
Parameters:
assetName: string
Returns:
AssetUnsupportedErrorProperties
assetName
string
name
string
DeviceConnectionError
class
Constructor
constructor
DeviceConnectionError(cause: Error): DeviceConnectionError
Parameters:
cause: Error
Returns:
DeviceConnectionErrorProperties
name
string
DeviceLockedError
class
Constructor
constructor
DeviceLockedError(): DeviceLockedError
Returns:
DeviceLockedErrorProperties
name
string
DeviceUninitializedError
class
Constructor
constructor
DeviceUninitializedError(): DeviceUninitializedError
Returns:
DeviceUninitializedErrorProperties
name
string
HardwareWalletError
class
Constructor
constructor
HardwareWalletError(message?: string): HardwareWalletError
Parameters:
message (optional): string
Returns:
HardwareWalletErrorParameters:
message (optional): string
options (optional): ErrorOptions
Returns:
HardwareWalletErrorProperties
name
string
HardwareWalletManufacturerMismatchError
class
Constructor
constructor
HardwareWalletManufacturerMismatchError(__namedParameters: any): HardwareWalletManufacturerMismatchError
Parameters:
__namedParameters: any
Properties
actual
string
expected
string
name
string
NoDeviceFoundError
class
Constructor
constructor
NoDeviceFoundError(): NoDeviceFoundError
Returns:
NoDeviceFoundErrorProperties
name
string
PassphraseProtectionEnableFailedError
class
Constructor
constructor
PassphraseProtectionEnableFailedError(): PassphraseProtectionEnableFailedError
Properties
name
string
SignMessageUnsupportedError
class
Constructor
constructor
SignMessageUnsupportedError(): SignMessageUnsupportedError
Returns:
SignMessageUnsupportedErrorProperties
name
string
UserRefusedError
class
Constructor
constructor
UserRefusedError(onDevice: boolean): UserRefusedError
Parameters:
onDevice: boolean
Returns:
UserRefusedErrorProperties
name
string
onDevice
boolean
WrongWalletSelectedError
class
Constructor
constructor
WrongWalletSelectedError(): WrongWalletSelectedError
Returns:
WrongWalletSelectedErrorProperties
name
string
XPubUnsupportedError
class
Constructor
constructor
XPubUnsupportedError(): XPubUnsupportedError
Returns:
XPubUnsupportedErrorProperties
name
string
EnsureDeviceReadyParams
interface
ensureDeviceReady(params)
Ensures the device is ready for operations on a specific asset.
- For Ledger: ensures the correct application is open
- For Trezor: ensures the correct wallet context (passphrase) is active
Properties
baseAssetName
string
walletAccount
any
GetAddressParams
interface
getAddress(...)
GetPublicKeyParams
interface
getPublicKey(...)
Properties
assetName
string
derivationPath
string
GetXPubParams
interface
getXPub(...)
Properties
assetName
string
derivationPath
string
HardwareWalletAssetHandler
interface
HardwareWalletAssetHandler
Properties
getAddress
any
getPublicKey
any
getXPub
any
signMessage
any
signTransaction
any
HardwareWalletDescriptor
interface
HardwareWalletDescriptor
Properties
get
any
internalDescriptor
manufacturer
name
string
transport
HardwareWalletDevice
interface
HardwareWalletDevice
Properties
cancelAction
any
ensureApplicationIsOpened?
any
ensureDeviceReady
any
getAddress
any
getPublicKey
any
getWalletId?
any
getXPub
any
listInstalledAssetNames
any
listSupportedAssetNames
any
listUseableAssetNames
any
signMessage
any
signTransaction
any
Accessors
descriptor
HardwareWalletDiscovery
interface
HardwareWalletDiscovery
Properties
list
any
scan
any
stopScan
any
Message
interface
Properties
rawMessage?
Readonly
MultisigData
interface
Properties
internalXpub
string
threshold
number
xpubs
string[]
SignMessageParams
interface
signMessage(...)
Properties
assetName
string
derivationPath
string
message
IMessage
SignTransactionParams
interface
signTransaction(...)
Properties
assetName
string
derivationPaths
any
derivationPathsMap?
Record
isNft?
Token-standard hint for hardware clear-signing (EVM).
true = NFT (ERC-721/ERC-1155) interaction, false = fungible/ERC-20,
undefined = unknown (device default). Derived upstream from an on-chain
supportsInterface check; lets the device disambiguate the shared
`approve`/`transferFrom` selectors instead of guessing from calldata.
boolean
multisigData?
signableTransaction
TokenAccountInfo
interface
Token account info for Solana hardware wallet signing (Trezor).
Properties
baseAddress
string
tokenAccount
string
tokenMint
string
tokenProgram
string
Bytes
type
EnsureApplicationIsOpenedParams
type
ensureApplicationIsOpened(assetName)
HardwareWalletDeviceModels
type
HardwareWalletManufacturer
type
HardwareWalletSupportEntry
type
Properties
models
HardwareWalletSupportMatrix
type
HardwareWalletSupportMatrix
This is a map of supported hardware wallets, where the key is the manufacturer and
the value is an object with the supported models.
An object of this type MAY be exposed on asset.baseAsset.api.features.hardwareWallets?.supportMatrix
to indicate the supported hardware wallets and models for the asset.
InternalDescriptor
type
LedgerDescriptorBLE
type
Properties
localName
string
serviceUUIDs
any
LedgerDescriptorTCP
type
InternalDescriptor
Properties
apduPort
number
LedgerDescriptorWebUSB
type
LedgerManufacturer
type
HardwareWalletManufacturer
LedgerModels
type
HardwareWalletDeviceModels
SignableTransaction
type
SignableTransactions are the transactions in serialized format to be signed.
Signatures
type
Signatures
TransportTypes
type
TrezorManufacturer
type
TrezorModels
type
