To check your Spark wallet balance, use the getBalance() method:

const balance = await wallet.getBalance();
console.log("Balance:", balance);

The getBalance() method returns a Promise resolving to an object containing:

  • balance: A bigint representing the total amount in satoshis
  • tokenBalances: A Map of token balances, where each entry contains:
    • balance: A bigint representing the token amount
    • tokenInfo: information about the specific token the wallet is holding

Understanding Your Balance

Your balance represents the sum of all available UTXOs in your wallet. This includes:

  • Deposits from Bitcoin
  • Received Lightning payments
  • Received Spark transfers
  • Received token transfers

Next Steps

Once you know your balance, you can:

Need Help?