get https://deep-index.moralis.io/api/v2//balance
Get the native balance for a specific wallet address.
Log in to see full request history
Response
Get the native balance for a specific wallet address.
xxxxxxxxxx
23import 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);
}
​
Try It!
to start a request and see the response here! Or choose an example: