> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# eth_getBalance | BNB Chain

> BNB API method that returns the balance of a specific Ethereum account in Wei, the smallest unit of ether. BNB Chain via Chainstack.

BNB API method that returns the balance of a specific Ethereum account in [Wei](https://www.investopedia.com/terms/w/wei.asp), the smallest unit of ether. This method allows developers to retrieve the current balance of a BNB account for various purposes, such as checking available funds or displaying balance information.

> [!NOTE]
>
> When called against a block older than the latest \~128 blocks, this method is treated as an archive request (2 RUs instead of 1 RU). See [request units](https://docs.chainstack.com/docs/request-units.md#evm-methods-affected-by-block-age).

## 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 latest justified block. Under BSC fast finality, a block becomes justified when more than two-thirds of the validators vote for it and its direct child carries their attestation in its header, so `safe` usually trails `latest` by a block or two.
  * `finalized` — the latest finalized block: a justified block whose direct child is also justified. Two conflicting blocks can both reach finality only if one-third or more of the validators violate the voting rules.
  * `earliest` — the earliest available or genesis block
  * `pending`— 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.

> [!NOTE]
>
> See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block) and [How The Merge Impacts Ethereum’s Application Layer](https://blog.ethereum.org/2021/11/29/how-the-merge-impacts-app-layer).

## Response

* `quantity` — the integer value of the current balance in Wei

## `eth_getBalance` code examples

```javascript ethers.js theme={"system"}
const ethers = require('ethers');
const NODE_URL = "CHAINSTACK_NODE_URL";
const provider = new ethers.JsonRpcProvider(NODE_URL);

const getBalance = async (address, block) => {
    const balance = await provider.send("eth_getBalance", [address, block]);
    console.log(balance);
  };

getBalance("0x8894E0a0c962CB723c1976a4421c95949bE2D4E3", "latest")
```

```python web3.py theme={"system"}
from web3 import Web3  
node_url = "CHAINSTACK_NODE_URL" 
web3 = Web3(Web3.HTTPProvider(node_url))

address = web3.to_checksum_address("0x8894E0a0c962CB723c1976a4421c95949bE2D4E3")
balance = web3.eth.get_balance(address, "latest") 
print(balance) 
```

## Use case

One practical use case for `eth_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.


## OpenAPI

````yaml openapi/bnb_node_api/eth_getBalance.json POST /mt_c524ad9781ae5dccd9ac6f5b0370e
openapi: 3.0.0
info:
  title: BNB Node API
  version: 1.0.0
  description: This is an API for interacting with an BNB node.
servers:
  - url: https://bsc-mainnet.core.chainstack.com
security: []
paths:
  /mt_c524ad9781ae5dccd9ac6f5b0370e:
    post:
      tags:
        - upload
      summary: eth_getBalance
      operationId: getBalance
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  default: 1
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: eth_getBalance
                params:
                  type: array
                  items:
                    anyOf:
                      - type: string
                        title: Address
                        description: The address identifier.
                      - type: string
                        title: Block identifier
                        description: The block identifier.
                  default:
                    - '0x6B8E1585035b5B53afcd9791076E43b53D3e1AA4'
                    - pending
      responses:
        '200':
          description: The account balance.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: object

````