
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@tetherto/wdk
Advanced tools
A flexible manager that can register and manage multiple wallet instances for different blockchains dynamically.
WDK is a simple tool that enables you to manage the WDK wallet and protocol modules through a single object.
Wallet Modules - Add wallet support for any blockchain:
@tetherto/wdk-wallet-evm - Ethereum, Polygon, Arbitrum@tetherto/wdk-wallet-evm-erc4337 - EVM with no gas fees@tetherto/wdk-wallet-ton - TON blockchain@tetherto/wdk-wallet-ton-gasless - TON with no gas fees@tetherto/wdk-wallet-btc - Bitcoin@tetherto/wdk-wallet-tron - TRON blockchain@tetherto/wdk-wallet-solana - Solana blockchainService Modules - Add swap, bridge, and lending services:
@tetherto/wdk-protocol-swap-paraswap-evm - Token swaps on EVM@tetherto/wdk-protocol-bridge-usdt0-evm - Bridge tokens between EVM chains@tetherto/wdk-protocol-bridge-usdt0-ton - Bridge tokens from TON to other chains@tetherto/wdk-protocol-lending-aave-evm - Lending and borrowing on EVM📚 Full module list and docs: docs.wallet.tether.io
@tetherto/wdk-wallet-evm, @tetherto/wdk-wallet-evm-erc-4337, @tetherto/wdk-wallet-tron and other wallet packages@tetherto/wdk-protocol-bridge-usdt0-evm, @tetherto/wdk-protocol-bridge-usdt0-ton and other service packagesnpm install @tetherto/wdk
import WDK from '@tetherto/wdk'
import WalletManagerEvm from '@tetherto/wdk-wallet-evm'
import WalletManagerTon from '@tetherto/wdk-wallet-ton'
import ParaswapProtocolEvm from '@tetherto/wdk-protocol-swap-paraswap-evm'
import Usdt0ProtocolTon from '@tetherto/wdk-protocol-bridge-usdt0-ton'
// Set up WDK with wallets and services
const wdk = new WDK(seed) //seed are your twelve word phrase
.registerWallet('ethereum', WalletManagerEvm, ethereumWalletConfig)
.registerWallet('ton', WalletManagerTon, tonWalletConfig)
.registerProtocol('ethereum', 'paraswap', ParaswapProtocolEvm, paraswapProtocolConfig)
.registerProtocol('ton', 'usdt0', Usdt0ProtocolTon, usdt0ProtocolConfig)
// Get accounts using different ways
const ethAccount = await wdk.getAccount('ethereum', 3)
const tonAccount = await wdk.getAccountByPath('ton', "1'/2/3")
// Send transactions directly
const { hash: txHash, fee: txFee } = await ethAccount.sendTransaction(tx)
// Use swap service
const paraswap = ethAccount.getSwapProtocol('paraswap')
const { hash: swapHash, fee: swapFee } = await paraswap.swap(swapOptions)
// Use bridge service
const usdt0 = tonAccount.getBridgeProtocol('usdt0')
const { hash: bridgeHash, fee: bridgeFee } = await usdt0.bridge(bridgeOptions)
// These will throw errors:
// const accountTron = await wdk.getAccount('tron', 5) // no tron wallet added
// const badBridge = accountEth.getBridgeProtocol('usdt0') // no usdt0 for ethereum
// const badSwap = tonAccount.getSwapProtocol('dedust') // no dedust for ton
constructor(seed: string | Uint8Array)
registerWallet<W>(blockchain: string, wallet: W, config: WalletConfig): WDKregisterProtocol<P>(blockchain: string, label: string, protocol: P, config: ProtocolConfig): WDKregisterMiddleware(blockchain: string, middleware: MiddlewareFunction): WDKgetAccount(blockchain: string, index?: number): Promise<IWalletAccountWithProtocols>getAccountByPath(blockchain: string, path: string): Promise<IWalletAccountWithProtocols>getFeeRates(blockchain: string): Promise<FeeRates>dispose(): voidgetRandomSeedPhrase(): stringisValidSeedPhrase(seedPhrase: string): booleanWorks with a basic wallet account but adds service management:
registerProtocol<P>(label: string, protocol: P, config: ProtocolConfig): IWalletAccountWithProtocolsgetSwapProtocol(label: string): ISwapProtocol - Gets the swap service with the given namegetBridgeProtocol(label: string): IBridgeProtocol - Gets the bridge service with the given namegetLendingProtocol(label: string): ILendingProtocol - Gets the lending service with the given nameconst wdk = new WDK(seed) //seed is your twelve word phrase
.registerWallet('ethereum', WalletManagerEvm, ethereumWalletConfig)
.registerWallet('arbitrum', WalletManagerEvm, arbitrumWalletConfig)
.registerWallet('ton', WalletManagerTon, tonWalletConfig)
const account = await wdk.getAccount('ethereum', 0)
account.registerProtocol('paraswap', ParaswapProtocolEvm, paraswapProtocolConfig)
const paraswap = account.getSwapProtocol('paraswap')
const { hash, fee } = await paraswap.swap(swapOptions)
// This will throw an error - no service with this name:
// const uniswap = account.getSwapProtocol('uniswap')
wdk.registerMiddleware('ethereum', async (account) => {
console.log('New account:', await account.getAddress())
})
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.
For support, please open an issue on the GitHub repository.
For full docs, visit docs.wallet.tether.io
FAQs
A flexible manager that can register and manage multiple wallet instances for different blockchains dynamically.
The npm package @tetherto/wdk receives a total of 1,539 weekly downloads. As such, @tetherto/wdk popularity was classified as popular.
We found that @tetherto/wdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.