eth_getBalance
method returns the balance of the account of a given address, expressed in wei. This method provides a simple way to query the amount of Ether held by an address at a specific block height.
Get you own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
address
: The address to get the balance from.blockParameter
(optional): This can be a hexadecimal block number, or the strings “latest”, “earliest”, or “pending”, indicating the state from which to get the balance.
Response
result
: The balance of the account at the given address, returned as a hexadecimal number.
Use case
This method is commonly used to check the balance of an address. It’s useful for wallets, explorers, and other applications that need to display the current or historical balance of a Ronin account.Body
application/json