> For the complete documentation index, see [llms.txt](https://poseidon.seaeye.cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://poseidon.seaeye.cn/evm/account/get_self_balance.md).

# get\_self\_balance

获取当前账户的原生代币余额。

## 方法定义

```python
def get_self_balance(self) -> Optional[Wei]
```

## 参数说明

无

## 返回值

| 类型             | 说明          |
| -------------- | ----------- |
| Optional\[Wei] | 当前账户的原生代币余额 |

## 示例代码

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