> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainworks.org/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`

> [tab] Socket.IO
>
> ```typescript theme={null}
> socket.emit("/svm/wallet/balance", {
>   chain: "sol",
>   wallet: "YourSolanaWalletPublicKey",
> });
> ```

> [tab] 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",
>   }),
> });
> ```

## Get Token Balance

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

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

> [tab] 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",
>   }),
> });
> ```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.