Get SOL Balance
Endpoint:/svm/wallet/balance
- Socket.IO
- HTTP
Get Token Balance
Endpoint:/svm/wallet/balance/token
- Socket.IO
- HTTP
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Retrieve Solana wallet balances and holdings across native SOL and SPL tokens.
/svm/wallet/balance
socket.emit("/svm/wallet/balance", {
chain: "sol",
wallet: "YourSolanaWalletPublicKey",
});
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",
}),
});
/svm/wallet/balance/token
socket.emit("/svm/wallet/balance/token", {
chain: "sol",
token: "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
wallet: "YourSolanaWalletPublicKey",
});
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",
}),
});
