eth_getBalance - Berachain

The eth_getBalance method is an Berachain JSON-RPC method that allows you to retrieve the Ether balance of a specified address. This method can be used to query the balance of any Berachain address, whether it is a contract or an externally owned account (EOA). A common use case for this method is to display the current balance of a user's account in a wallet application or a decentralised application (DApp).

Body Params
integer
Defaults to 1
string
Defaults to 2.0
params
array of strings
length between 2 and 2
Defaults to 0xe5cB067E90D5Cd1F8052B83562Ae670bA4A211a8,latest
  1. String - 20 Bytes - Address
  2. String - Either the hex value of a block number OR a block hash OR One of the following block tags:
    • pending - A sample next block built by the client on top of latest and containing the set of transactions usually taken from local mempool. Intuitively, you can think of these as blocks that have not been mined yet.
    • latest - The most recent block in the canonical chain observed by the client, this block may be re-orged out of the canonical chain even under healthy/normal conditions.
    • earliest - The lowest numbered block the client has available. Intuitively, you can think of this as the first block created.
params
string
Defaults to eth_getBalance
Response

Language
Credentials
Header
URL
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json