If you’re building on Solana and need a fast and reliable way to check Solana wallet balance, this guide walks you through the exact method using the getBalance
RPC call with NOWNodes.
NOWNodes provides instant access to full Solana nodes through its managed RPC provider, giving you a ready-to-use Solana RPC URL without any setup or maintenance.
Check Solana Wallet Balance with getBalance
To check a Solana wallet balance, you’ll use the getBalance
method. It returns the lamport balance of the account tied to the public key you provide.
1 SOL = 1,000,000,000 lamports. The value returned is always in lamports.
Here’s the exact request you can use.
Request
curl --location 'https://sol.nownodes.io' \
--header 'Content-Type: application/json' \
--header 'api-key: YOUR_API_KEY' \
--data '
{
"jsonrpc": "2.0", "id": 1,
"method": "getBalance",
"params": [
"83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri"
]
}
'
Replace:
YOUR_API_KEY
with your actual API key from NOWNodes.io- The wallet address inside
params
with the public key you want to check
Response
{
"jsonrpc": "2.0",
"result": {
"context": { "slot": 1 },
"value": 0
},
"id": 1
}
The value
field is the balance in lamports. In this example, the wallet holds 0
lamports.
Why Use NOWNodes?
NOWNodes gives you access to a live Solana RPC URL, which means:
- No need to run your own node
- Ready for production workloads
- HTTP and WSS methods are available
- Fast, stable, and scalable
- Easy to integrate into any backend, script, or app
As a fully managed RPC provider, NOWNodes is ideal for developers who want to focus on building instead of managing infrastructure.
Summary
To check Solana wallet balance, all you need is a valid public key and a working API key from NOWNodes. Using the getBalance
method, you can query any account’s balance in lamports through a simple RPC request.
If you’re looking for a reliable and fast way to interact with the Solana network, using NOWNodes as your RPC provider is one of the simplest and most efficient options available.
Ready to get started? Get your API key from NOWNodes and plug it into the request above.