current location:Home >> Solana Tutorial >> Four Ways to Check the Balance of a Solana (SOL) Wallet Address

Four Ways to Check the Balance of a Solana (SOL) Wallet Address

admin Solana Tutorial 2012

Whether you're tracking your own wallet or verifying transactions, here are four easy methods to check a Solana address balance.  

Four Ways to Check the Balance of a Solana (SOL) Wallet Address


1. Solana Blockchain Explorer (Solscan & SolanaFM)  

Best for: Quick checks with full transaction history.  


Using Solscan

1. Go to [https://solscan.io](https://solscan.io)  

2. Paste the Solana wallet address in the search bar.  

3. View:  

   - SOL Balance (in SOL and USD)  

   - Tokens Held (SPL tokens like USDC, BONK, etc.)  

   - Transaction History  


Using SolanaFM

- Visit [https://solana.fm](https://solana.fm)  

- Enter the wallet address for a detailed breakdown.  


2. Solana CLI (Command Line)  

Best for: Developers or terminal users.  


1. Ensure the [Solana CLI](https://docs.solana.com/cli/install-solana-cli-tools) is installed.  

2. Run:  

   ```bash

   solana balance YOUR_WALLET_ADDRESS

   ```

   Example:  

   ```bash

   solana balance 7x5Z8Jf...3dQ

   ```

   - Shows balance in lamports (1 SOL = 1,000,000,000 lamports).  

   - Convert to SOL by dividing by `10^9`.  


3. Wallet Apps (Phantom, Solflare, Backpack)  

Best for: Checking your own wallet.  


Phantom Wallet  

1. Open Phantom ([https://phantom.app](https://phantom.app)).  

2. Your SOL and token balances appear at the top.  

3. To check another address:  

   - Go to Settings → Wallet Address → View on Explorer.  


Solflare & Backpack  

- Similar process—your balance is visible upon login.  


4. Programmatic API (for Developers)  

Best for: Apps, bots, or automated checks.  


Using Solana Web3.js  

```javascript

const { Connection, PublicKey } = require("@solana/web3.js");


const connection = new Connection("https://api.mainnet-beta.solana.com");

const walletAddress = new PublicKey("YOUR_WALLET_ADDRESS");


async function checkBalance() {

  const balance = await connection.getBalance(walletAddress);

  console.log(`Balance: ${balance / 1e9} SOL`);

}

checkBalance();

```

Using Helius API (Enhanced Data)  

- Free tier: [https://www.helius.dev](https://www.helius.dev)  

- Returns balances + token metadata.  


Bonus: Check SPL Token Balances  

To see all tokens (USDC, BONK, etc.) in a wallet:  

1. Use [Solana Token List API](https://solana-labs.github.io/solana-web3.js/classes/Connection.html#getTokenAccountsByOwner).  

2. Or check Solscan/SolanaFM (under "Tokens" tab).  


Summary Table  

| Method                | Best For                  | Ease of Use |  

|--|--||  

| Solscan/SolanaFM  | Quick balance + TX history | ⭐⭐⭐⭐⭐ |  

| Solana CLI        | Developers/Terminal users | ⭐⭐⭐ |  

| Wallet Apps       | Checking your own wallet  | ⭐⭐⭐⭐ |  

| API (Web3.js/Helius) | Developers/Bots       | ⭐⭐ |  


Final Tips  

✅ Bookmark Solscan for fast checks.  

✅ Use wallets like Phantom for real-time updates.  

🚫 Never share your private key when checking balances.  

If you have any questions or uncertainties, please join the official Telegram group: https://t.me/GToken_EN

GTokenTool

GTokenTool is the most comprehensive one click coin issuance tool, supporting multiple public chains such as TON, SOL, BSC, etc. Function: Create tokensmarket value managementbatch airdropstoken pre-sales IDO、 Lockpledge mining, etc. Provide a visual interface that allows users to quickly create, deploy, and manage their own cryptocurrencies without writing code.

Similar recommendations