Skip to main content
Version: 2.2

Get native balance by wallet

GEThttps://solana-gateway.moralis.io/account/:network/:address/balance

Gets the native balance owned by a given network and address.

PATH PARAMS
networkstringrequired
The network to query
addressstringrequired
The address for which the native balance will be checked
Responses
API KEY
import Moralis from 'moralis';

try {
await Moralis.start({
apiKey: "YOUR_API_KEY"
});

const response = Moralis.SolApi.account.getBalance({
"network": "mainnet",
"address": "EJpLyTeE8XHG9CeREeHd6pr6hNhaRnTRJx4Z5DPhEJJ6"
});

console.log(response.raw);
} catch (e) {
console.error(e);
}
Response Example
{
"solana": "",
"lamports": ""
}