> 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/chain.md).

# 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): 批量获取存储值
