Overview
This guide shows you how to work with imported TRON 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 TRX balance of your imported wallet using the TronGrid API:
Step 2: Sign Transactions with Imported Wallet
Use your imported wallet to sign TRON transactions. Build the unsigned transaction against a full node, then pass it to signTransaction():
Step 3: Sign Messages with Imported Wallet
Sign messages for authentication or data integrity:
Step 4: Check TRC-20 Token Balances
Check TRC-20 token balances in your imported wallet by triggering a balanceOf call on the token contract:
Complete Example: Sign and Send from Imported Wallet
Best Practices
- Balance Checking: Verify sufficient balance (including bandwidth/energy) before sending transactions
- Error Handling: Implement proper error handling for all wallet operations
- Security: Never expose sensitive information in server-side code
- Network Selection: Pick the full node matching your target network — Mainnet, Shasta, and Nile all use the same address format
Next Steps
Last modified on October 15, 2026