Skip to main content

Don't have an API key yet?

Sign-up to Moralis to get your free API key and start building today.

Get Your Free API Key
Version: 2.2

Get native balance by wallet

GEThttps://deep-index.moralis.io/api/v2.2/:address/balance

Get the native balance for a specific wallet address.

PATH PARAMS
addressstringrequired
The address from which the native balance will be checked
QUERY PARAMS
chainstring
The chain to query
to_blocknumber
The block number from which the balances should be checked
Responses
API KEY
import Moralis from 'moralis';

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

const response = await Moralis.EvmApi.balance.getNativeBalance({
"chain": "0x1",
"address": "0xDC24316b9AE028F1497c275EB9192a3Ea0f67022"
});

console.log(response.raw);
} catch (e) {
console.error(e);
}
Response Example
{
"balance": "1234567890"
}