# Utils

Utils 是通用工具集，整合了常用的链下操作。静态类，无需实例化。

## 方法列表

* [set\_solidity\_version](/evm/utils/set_solidity_version.md): 选择 Solidity 版本
* [compile\_solidity\_contract](/evm/utils/compile_solidity_contract.md): 编译 Solidity 合约
* [import\_contract\_abi](/evm/utils/import_contract_abi.md): 导入合约 ABI
* [generate\_new\_account](/evm/utils/generate_new_account.md): 创建新账户
* [generate\_account\_from\_mnemonic](/evm/utils/generate_account_from_mnemonic.md): 从助记词生成账户
* [calculate\_create\_case\_contract\_address](/evm/utils/calculate_create_case_contract_address.md): 计算 CREATE 方式部署的合约地址
* [calculate\_create2\_case\_contract\_address](/evm/utils/calculate_create2_case_contract_address.md): 计算 CREATE2 方式部署的合约地址
* [generate\_signature\_data\_with\_signature](/evm/utils/generate_signature_data_with_signature.md): 使用签名生成签名数据
* [generate\_signature\_data\_with\_rsv](/evm/utils/generate_signature_data_with_rsv.md): 使用 R,S,V 生成签名数据
* [recover\_message\_string](/evm/utils/recover_message_string.md): 恢复消息字符串的签名者
* [recover\_message\_hash](/evm/utils/recover_message_hash.md): 恢复消息哈希的签名者
* [recover\_typed\_message](/evm/utils/recover_typed_message.md): 恢复结构化消息的签名者
* [convert\_equivalent\_signature](/evm/utils/convert_equivalent_signature.md): 生成等效签名
* [assembly\_to\_bytecode\_legacy](/evm/utils/assembly_to_bytecode_legacy.md): EVM 汇编转字节码
* [bytecode\_to\_assembly\_legacy](/evm/utils/bytecode_to_assembly_legacy.md): 字节码转 EVM 汇编


---

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