WDK Examples

June 12, 2026 ยท View on GitHub

Runnable code examples for WDK (Wallet Development Kit) SDK modules.

Each folder contains small runnable examples for one WDK package or integration.

Examples

FolderPackageDescription
wdk@tetherto/wdkCore WDK setup, wallet registration, middleware, and transaction flow
wallet-evm@tetherto/wdk-wallet-evmEVM wallets, balances, transactions, token transfers, signing, and fees
wallet-evm-erc-4337@tetherto/wdk-wallet-evm-erc-4337ERC-4337 smart accounts, UserOperations, paymasters, and bundlers
wallet-solana@tetherto/wdk-wallet-solanaSolana wallets, balances, transactions, SPL tokens, signing, and fees
wallet-ton@tetherto/wdk-wallet-tonTON wallets, balances, transactions, Jettons, signing, and fees
wallet-tron@tetherto/wdk-wallet-tronTRON wallets, balances, transactions, TRC20 tokens, signing, and fees
mcp-toolkit@tetherto/wdk-mcp-toolkitMCP server and LangChain agent examples for WDK tools
walletconnect-walletkit@reown/walletkit + WDKSelf-contained dApp โ†” wallet signing flow

Run

1. Install root dependencies and set up the environment:

npm install
cp .env.example .env
# Fill in the values in .env

2. Install dependencies for the sub-repo you want to run:

cd wallet-evm
npm install

3. Run an example:

npm run example:create-wallet

Each sub-repo has its own package.json with only the dependencies it needs. See the README in each folder for available examples.

Most transaction examples quote by default. Set ACTUALLY_SEND=true in .env only when using a funded test wallet.

Documentation

License

Apache License 2.0