> ## 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 | Monad

> Monad API method that returns the balance of the account at the given address. The balance is returned in wei, the smallest unit of MON.

Monad API method that returns the balance of the account at the given address. The balance is returned in wei, the smallest unit of MON.

<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](/docs/request-units#archive-state-methods).
</Note>

## Parameters

* `data` — the 20-byte address to check for balance.
* `quantity or tag` — integer block number, or the string `latest`, `earliest`, or `pending`.

## Response

* `result` — the balance of the account in wei, encoded as hexadecimal.

## `eth_getBalance` code examples

<CodeGroup>
  ```javascript ethers.js theme={"system"}
  const { ethers } = require("ethers");

  const provider = new ethers.JsonRpcProvider("CHAINSTACK_NODE_URL");

  async function getBalance() {
    const address = "0x0000000000000000000000000000000000001000";
    const balance = await provider.getBalance(address);
    console.log(`Balance: ${ethers.formatEther(balance)} MON`);
  }

  getBalance();
  ```

  ```python web3.py theme={"system"}
  from web3 import Web3

  node_url = "CHAINSTACK_NODE_URL"

  web3 = Web3(Web3.HTTPProvider(node_url))

  address = "0x0000000000000000000000000000000000001000"
  balance = web3.eth.get_balance(address)
  print(f'Balance: {web3.from_wei(balance, "ether")} MON')
  ```
</CodeGroup>

## Use case

A practical use case for `eth_getBalance` is displaying user wallet balances in DApps or checking if an account has sufficient funds before sending a transaction.


## OpenAPI

````yaml openapi/monad_node_api/accounts_info/eth_getBalance.json POST /
openapi: 3.0.0
info:
  title: Monad Node API
  version: 1.0.0
  description: This is an API for interacting with a Monad node.
servers:
  - url: https://monad-testnet.core.chainstack.com/9c5b265f20b3ea5df4f54f70eb74b800
security: []
paths:
  /:
    post:
      tags:
        - Accounts info
      summary: eth_getBalance
      operationId: eth_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:
                    type: string
                  default:
                    - '0x0000000000000000000000000000000000001000'
                    - latest
      responses:
        '200':
          description: The balance in wei.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: string

````