# get\_balance

根据账户地址获取其原生代币余额。

## 方法定义

```python
def get_balance(self, address: ChecksumAddress) -> Optional[Wei]
```

## 参数说明

| 参数      | 类型              | 说明   |
| ------- | --------------- | ---- |
| address | ChecksumAddress | 账户地址 |

## 返回值

| 类型             | 说明            |
| -------------- | ------------- |
| Optional\[Wei] | 账户原生代币余额(Wei) |

## 示例代码

```python
# 获取账户余额
balance = chain.get_balance("0x...")
if balance is not None:
    print(f"Balance: {Web3.from_wei(balance, 'ether')} ETH")
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://poseidon.seaeye.cn/evm/chain/get_balance.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
