# eth\_getBalance

Returns the balance of the account of given address.

## **Parameters**

1. `DATA`, 20 Bytes - address to check for balance.
2. `QUANTITY|TAG` - integer block number, or the string `"latest"`, `"earliest"` or `"pending"`, see the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block)

## Returns

`QUANTITY` - integer of the current balance in wei.

## Example

*NOTE:* In this example we are using public Ethereum endpoint. Ideally, for your own projects, you should use your own endpoint, which you can generate for free by connecting to your wallet [here](https://www.noderpc.xyz/).

{% tabs %}
{% tab title="ethers" %}

### Query

*NOTE:* `ethers` used below is a well-known web3 library, check it out [here](https://github.com/ethers-io/ethers.js/).

```javascript
import { ethers } from 'ethers';

const provider =
  new ethers
    .providers
    .JsonRpcProvider("https://www.noderpc.xyz/rpc-mainnet/public")

provider.send('eth_getBalance', ["0x657CDcB4A6d39B1287da5B0b68f437Cd1E1086D3", "latest"]).then((result) => {
  console.log(result);
});

```

### Result

{% code overflow="wrap" %}

```json
0x1a3de1f19a304c50
```

{% endcode %}
{% endtab %}
{% endtabs %}

###
