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 check the balance of. -
quantity or tag
— the integer of a block encoded as hexadecimal or the string with:latest
— the most recent block in the blockchain and the current state of the blockchain at the most recent block. A chain reorganization is to be expected.safe
—the block that received justification from the beacon chain. Although this block could be involved in a chain reorganization, it would necessitate either a coordinated attack by the majority of validators or severe propagation latency.finalized
— the block accepted as canonical by more than 2/3 of the validators. A chain reorganization is extremely unlikely, and it would require at least 1/3 of the staked amount to be burned.earliest
— the earliest available or genesis blockpending
— the pending state and transactions block. This is the current state of transactions that have been broadcast to the network but have not yet been included in a block.
Response
quantity
— the integer value of the current balance in Wei
eth_getBalance
code examples
Use case
One practical use case foreth_getBalance
is to check the balance of an account for a program that scans the balance periodically and fills up the account when the balance drops below a certain value.Body
application/json
Response
200 - application/json
The account balance.
The response is of type object
.