https://github.com/tetherto/wdk-examples
https://github.com/tetherto/wdk-examples
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tetherto/wdk-examples
- Owner: tetherto
- Created: 2025-10-01T16:12:00.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2026-06-11T16:22:39.000Z (about 2 months ago)
- Last Synced: 2026-06-11T18:13:09.823Z (about 2 months ago)
- Language: TypeScript
- Size: 517 KB
- Stars: 0
- Watchers: 0
- Forks: 10
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WDK Examples
Runnable code examples for [WDK (Wallet Development Kit)](https://docs.wdk.tether.io/) SDK modules.
Each folder contains small runnable examples for one WDK package or integration.
## Examples
| Folder | Package | Description |
|--------|---------|-------------|
| [wdk](./wdk/) | `@tetherto/wdk` | Core WDK setup, wallet registration, middleware, and transaction flow |
| [wallet-evm](./wallet-evm/) | `@tetherto/wdk-wallet-evm` | EVM wallets, balances, transactions, token transfers, signing, and fees |
| [wallet-evm-erc-4337](./wallet-evm-erc-4337/) | `@tetherto/wdk-wallet-evm-erc-4337` | ERC-4337 smart accounts, UserOperations, paymasters, and bundlers |
| [wallet-solana](./wallet-solana/) | `@tetherto/wdk-wallet-solana` | Solana wallets, balances, transactions, SPL tokens, signing, and fees |
| [wallet-ton](./wallet-ton/) | `@tetherto/wdk-wallet-ton` | TON wallets, balances, transactions, Jettons, signing, and fees |
| [wallet-tron](./wallet-tron/) | `@tetherto/wdk-wallet-tron` | TRON wallets, balances, transactions, TRC20 tokens, signing, and fees |
| [mcp-toolkit](./mcp-toolkit/) | `@tetherto/wdk-mcp-toolkit` | MCP server and LangChain agent examples for WDK tools |
| [walletconnect-walletkit](./walletconnect-walletkit/) | `@reown/walletkit` + WDK | Self-contained dApp ↔ wallet signing flow |
## Run
**1. Install root dependencies and set up the environment:**
```bash
npm install
cp .env.example .env
# Fill in the values in .env
```
**2. Install dependencies for the sub-repo you want to run:**
```bash
cd wallet-evm
npm install
```
**3. Run an example:**
```bash
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
- [WDK Documentation](https://docs.wdk.tether.io/)
- [WDK Core API Reference](https://docs.wdk.tether.io/sdk/core-module/api-reference)
- [EVM API Reference](https://docs.wdk.tether.io/sdk/wallet-modules/wallet-evm/api-reference)
- [EVM ERC-4337 API Reference](https://docs.wdk.tether.io/sdk/wallet-modules/wallet-evm-erc-4337/api-reference)
- [Solana API Reference](https://docs.wdk.tether.io/sdk/wallet-modules/wallet-solana/api-reference)
- [TON API Reference](https://docs.wdk.tether.io/sdk/wallet-modules/wallet-ton/api-reference)
- [TRON API Reference](https://docs.wdk.tether.io/sdk/wallet-modules/wallet-tron/api-reference)
- [MCP Toolkit API Reference](https://docs.wdk.tether.io/ai/mcp-toolkit/api-reference)
## License
Apache License 2.0