THORSwap SwapKit
Ask or search…
K
Links
Comment on page

Trezor

Installation

pnpm
yarn
npm
pnpm add @swapkit/wallet-trezor
yarn add @swapkit/wallet-trezor
npm add @swapkit/wallet-trezor

Integrations

Chain
Supported
Toolbox
BTC
UTXO
LTC
UTXO
BCH
UTXO
DOGE
UTXO
ETH
EVM
AVAX
EVM
BSC
EVM
BNB
COSMOS
COSMOS (ATOM)
COSMOS
THORCHAIN
COSMOS

✅ - Ready 🤔 - Planned ⏳ - In Progress ❌ - Not Integrated / Can't be integrated

Example:

import { SwapKitCore, Chain } from '@swapkit/core';
import { trezorWallet } from '@swapkit/wallet-trezor';
const client = new SwapKitCore();
client.extend({ wallets: [trezorWallet] });
// [44, 60, 0, 0, 2]
const defaultDerivationPath = getDerivationPathFor({ chain: Chain.ETH, index: 2 })
// [44, 60, 2, 0, 0]
const ledgerLiveDerivationPath = getDerivationPathFor({
chain: Chain.ETH,
index: 2,
// Chain dependend -> 'legacy' | 'ledgerLive' | 'nativeSegwitMiddleAccount' | 'segwit';
type: 'ledgerLive'
})
await client.connectTrezor(Chain.ETH, ledgerLiveDerivationPath)
Last modified 2mo ago