# Chain

Chain 是 EVM 链实例，后续的所有链上交互操作都将发往该链处理。

## 成员变量

* `chain_id`: 链 ID
* `provider`: web3.py 原生的 HTTPProvider 实例
* `eth`: HTTPProvider 实例中的 eth 模块

## 方法列表

* [**init**](/evm/chain/__init__.md): 初始化 Chain 实例
* [get\_chain\_information](/evm/chain/get_chain_information.md): 获取链基本信息
* [get\_block\_information](/evm/chain/get_block_information.md): 获取区块信息
* [get\_transaction\_receipt\_by\_hash](/evm/chain/get_transaction_receipt_by_hash.md): 通过交易哈希获取交易回执
* [get\_transaction\_receipt\_by\_block\_id\_and\_index](/evm/chain/get_transaction_receipt_by_block_id_and_index.md): 通过区块和索引获取交易回执
* [get\_balance](/evm/chain/get_balance.md): 获取账户余额
* [get\_code](/evm/chain/get_code.md): 获取合约字节码
* [get\_storage](/evm/chain/get_storage.md): 获取存储值
* [dump\_storage](/evm/chain/dump_storage.md): 批量获取存储值


---

# 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.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.
