# 检查钱包余额

## 安装 Cast

<https://book.getfoundry.sh/getting-started/installation>

## 比较 Geth 与 Solana 上的钱包余额

在 OP Geth 上检查余额

{% code overflow="wrap" %}

```bash
cast balance 0xf0e0CA2704D047A7Af27AafAc6D70e995520C2B2  -r http://localhost:8545
```

{% endcode %}

使用轻客户端在 Solana 上检查余额

{% code overflow="wrap" %}

```bash
cast balance 0xf0e0CA2704D047A7Af27AafAc6D70e995520C2B2  -r http://localhost:9090
```

{% endcode %}

这些余额应当相同。


---

# 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://docs.rome.builders/zh/legacy/rome-l2-setup/test-your-l2/check-wallet-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.
