title: Get Balance and all custom token list of Solana tokens in Wallet
body: <p>I'm actually stuck at the first step on connecting to phantom wallet. I'm trying to perform the following step.</p>
  <ol>
  <li>Connect to Phantom wallet</li>
  <li>Get a Public key</li>
  <li>Get Balance of all tokens</li>
  <li>Perform Buy/Sell</li>
  </ol>
  <p>I'm able to connect to a phantom wallet with the below code. I'm not sure if the next step in the process is to get a public key so that I can find the balance of all tokens as part of the account.</p>
  <p><code>const balance = connection.getBalance(publicKey);</code>
  The above method is what I found from the documentation, but I'm not sure how can I get the publicKey of the end user who connected their wallet to the webiste.</p>
  <p><code>const connection = new solanaWeb3.Connection(solanaWeb3.clusterApiUrl(&quot;mainnet-beta&quot;)) console.log(connection);</code></p>