> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainworks.co/llms.txt
> Use this file to discover all available pages before exploring further.

# SVM Wallet

> Retrieve Solana wallet balances and holdings across native SOL and SPL tokens.

Query wallet balances.

## Get SOL Balance

**Endpoint:** `/svm/wallet/balance`

<Tabs>
  <Tab title="Socket.IO">
    ```typescript theme={null}
    socket.emit("/svm/wallet/balance", {
      chain: "sol",
      wallet: "YourSolanaWalletPublicKey",
    });
    ```
  </Tab>

  <Tab title="HTTP">
    ```typescript theme={null}
    await fetch("https://api.chainworks.co/svm/wallet/balance", {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
        Authorization: CHAINWORKS_API_AUTH_TOKEN,
      },
      body: JSON.stringify({
        chain: "sol",
        wallet: "YourSolanaWalletPublicKey",
      }),
    });
    ```
  </Tab>
</Tabs>

## Get Token Balance

**Endpoint:** `/svm/wallet/balance/token`

<Tabs>
  <Tab title="Socket.IO">
    ```typescript theme={null}
    socket.emit("/svm/wallet/balance/token", {
      chain: "sol",
      token: "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
      wallet: "YourSolanaWalletPublicKey",
    });
    ```
  </Tab>

  <Tab title="HTTP">
    ```typescript theme={null}
    await fetch("https://api.chainworks.co/svm/wallet/balance/token", {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
        Authorization: CHAINWORKS_API_AUTH_TOKEN,
      },
      body: JSON.stringify({
        chain: "sol",
        token: "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
        wallet: "YourSolanaWalletPublicKey",
      }),
    });
    ```
  </Tab>
</Tabs>
