
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@ton/walletkit
Advanced tools
A production-ready wallet-side integration layer for TON Connect. Clean architecture, TypeScript-first, designed for building TON wallets at scale.
@ton/walletkit provides everything needed to integrate TON Connect into your wallet application:
For detailed SDK usage and API reference, see DOCUMENTATION.md.
pnpm add @ton/walletkit
# Install dependencies
pnpm install
# Build packages
pnpm build
# Watch mode for development
pnpm dev
src/
├── core/ # Core business logic
│ ├── TonWalletKit.ts # Main orchestration class
│ ├── BridgeManager.ts # Bridge connection management
│ ├── WalletManager.ts # Wallet CRUD operations
│ └── SessionManager.ts # Session lifecycle tracking
├── handlers/ # Event-specific handlers
│ ├── ConnectHandler.ts # Connection requests
│ ├── TransactionHandler.ts # Transaction requests
│ └── SignDataHandler.ts # Data signing requests
├── contracts/ # Smart contract wrappers
│ ├── JettonMaster.ts # Jetton operations
│ └── NftItem.ts # NFT operations
├── utils/ # Utilities and helpers
├── types/ # TypeScript type definitions
└── index.ts # Public exports
# Run all tests
pnpm test
# Run tests with coverage
pnpm test:coverage
# Run mutation tests (quality check)
pnpm test:mutation
# View coverage report
# Open coverage/index.html in browser
# Lint code
pnpm lint
# Fix linting issues
pnpm lint:fix
# Quality gate (coverage + checks)
pnpm quality
# Clean build artifacts
pnpm build:clean
# Build CommonJS
pnpm build:cjs
# Build ES Modules
pnpm build:esm
# Build both (recommended)
pnpm build
Each component has a single responsibility and can be tested in isolation:
pnpm testpnpm lint:fixThe apps/demo-wallet directory contains a reference implementation showing how to integrate walletkit:
cd apps/demo-wallet
pnpm install
pnpm dev
Key files to review:
src/stores/slices/walletSlice.ts - Kit initialization and event handlerssrc/components/modals/ - UI for connect/transaction approvalssrc/pages/SendTransaction.tsx - Programmatic transaction creationSet the environment variable before running:
DEBUG=walletkit:* pnpm dev
Bridge Connection Fails
bridgeUrl is correctTransaction Preview Empty
Wallet Not Found
addWallet()package.jsonpnpm build to create fresh buildpnpm test to verify all tests passpnpm quality to check coveragenpm publishISC License - see LICENSE file for details.
FAQs
Wallet kit for TON Connect
We found that @ton/walletkit demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.