
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
The npm package @ton/walletkit receives a total of 13 weekly downloads. As such, @ton/walletkit popularity was classified as not popular.
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.