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

# eth_getBalance

> Call eth_getBalance on Goldsky Edge RPC to return the wei balance of any EVM address at a specific block or tag, with curl, JavaScript, and Python examples.

## Parameters

<ParamField body="address" type="string" required>
  Address to check balance (20 bytes)
</ParamField>

<ParamField body="blockNumber" type="string" required>
  Block number (hex), or `latest`, `earliest`, `pending`, `safe`, `finalized`
</ParamField>

## Returns

<ParamField body="balance" type="string">
  Current balance in wei (hex encoded)
</ParamField>

## Example

<CodeGroup>
  ```bash cURL theme={"dark"}
  curl -X POST "https://edge.goldsky.com/standard/evm/1?key=demo" \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc": "2.0", "method": "eth_getBalance", "params": ["0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045", "latest"], "id": 1}'
  ```

  ```javascript JavaScript theme={"dark"}
  const response = await fetch('https://edge.goldsky.com/standard/evm/1?key=demo', {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({
    "jsonrpc": "2.0",
    "method": "eth_getBalance",
    "params": [
      "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
      "latest"
    ],
    "id": 1
  })
  });
  const { result } = await response.json();
  console.log(result);
  ```

  ```python Python theme={"dark"}
  import requests

  response = requests.post(
      'https://edge.goldsky.com/standard/evm/1?key=demo',
      json={
    "jsonrpc": "2.0",
    "method": "eth_getBalance",
    "params": [
      "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
      "latest"
    ],
    "id": 1
  }
  )
  print(response.json()['result'])
  ```
</CodeGroup>


## Related topics

- [How Boost routes requests](/boost/how-it-works.md)
- [Monitoring](/edge-rpc/platform/monitoring.md)
- [Track native token balances for a set of addresses](/turbo-pipelines/guides/native-balances.md)
- [Cut RPC costs with Boost](/boost.md)
- [Turbo SQL Functions Reference](/turbo-pipelines/reference/sql-functions.md)
