Skip to main content

Get native balance by wallet

GEThttps://deep-index.moralis.io/api/v2/: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';
import { EvmChain } from '@moralisweb3/evm-utils';

try {
const address = '0x1234567890123456789012345678901234567890';

const chain = EvmChain.ETHEREUM;

await Moralis.start({
apiKey: 'YOUR_API_KEY',
// ...and any other configuration
});

const response = await Moralis.EvmApi.balance.getNativeBalance({
address,
chain,
});

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