Overview
TrezorConnect provides a comprehensive API for interacting with Trezor hardware wallets. All methods are called through theTrezorConnect object and return a Promise that resolves with a result object.
Method Structure
Every method call follows a consistent pattern:Response Format
All methods return a standardized response object:Method Categories
TrezorConnect methods are organized into several categories:Device Management
Methods for device configuration, firmware, and security:getFeatures
Get device features and capabilities
getDeviceState
Get device state for passphrase validation
firmwareUpdate
Update device firmware
resetDevice
Initialize a new device
wipeDevice
Wipe all device data
applySettings
Change device settings
Account Operations
Generic methods that work across multiple cryptocurrencies:Bitcoin Operations
signTransaction
signTransaction
Sign a Bitcoin transaction with detailed UTXO inputs and outputs.
composeTransaction
composeTransaction
Compose a transaction with automatic UTXO selection and fee calculation.
authorizeCoinjoin
authorizeCoinjoin
Ethereum Operations
Multi-Chain Support
TrezorConnect supports multiple blockchain networks:Cardano
cardanoGetAddress
cardanoSignTransaction
cardanoComposeTransactionRipple
rippleGetAddress
rippleSignTransactionStellar
stellarGetAddress
stellarSignTransactionTezos
tezosGetAddress
tezosSignTransactionMonero
moneroGetAddress
moneroSignTransactionSolana
solanaGetAddress
solanaSignTransactionTron
tronGetAddress
tronSignTransactionBundle Calls
Many methods support bundle calls to process multiple requests efficiently:Bundle calls automatically emit
BUNDLE_PROGRESS events during processing. See the Events page for details.Advanced Features
Silent Address Validation
Some methods support silent address validation:Coin Path Validation
Methods automatically validate derivation paths against coin standards:Cross-Chain Calls
Bypass coin path validation for non-standard paths:Blockchain Methods
Methods that interact with blockchain backends (no device needed):Method Permissions
Methods require specific permissions:| Permission | Description | Methods |
|---|---|---|
read | Read data from device | getAddress, getPublicKey, getAccountInfo |
write | Write data to device | resetDevice, applySettings |
management | Device management | firmwareUpdate, wipeDevice |
Common Parameters
Many methods share common parameters:| Parameter | Type | Description |
|---|---|---|
path | string | number[] | BIP32 derivation path |
coin | string | Cryptocurrency identifier |
showOnTrezor | boolean | Display on device screen |
bundle | array | Multiple requests in one call |
TypeScript Support
All methods are fully typed:Next Steps
Events
Learn about the event system
Error Handling
Handle errors effectively
Device Management
Manage device connections
API Reference
Explore all methods