Overview
This guide shows you how to work with imported TON wallets for common operations. Once you’ve imported a private key, you can perform various wallet operations directly.Prerequisites
Step 1: Check Wallet Balance
Check the TON balance of your imported wallet using the TON HTTP API:Step 2: Sign Transactions with Imported Wallet
Use your imported wallet to sign TON transactions. Serialize your cell to base64 before passing it tosignTransaction():
Step 3: Sign Messages with Imported Wallet
Sign messages for authentication or data integrity:Step 4: Check Jetton Balances
Check Jetton (TON fungible token) balances in your imported wallet:Complete Example: Sign and Send from Imported Wallet
Best Practices
- Balance Checking: Verify sufficient balance before sending transactions
- Error Handling: Implement proper error handling for all wallet operations
- Security: Never expose sensitive information in server-side code
- Network Selection: The SDK currently supports TON Mainnet only