# deal Map

The `deal_map` is used to query file storage orders.

```rust
/// Asynchronously retrieves the `DealInfo` associated with a given hash.
///
/// # Parameters
/// - `hash`: A string slice that holds the hash identifier for the deal.
/// - `block_hash`: An optional `H256` hash representing the block hash to query the deal against.
///
/// # Returns
/// A `Result` which is:
/// - `Ok(Some(DealInfo))` if the deal is found and successfully retrieved.
/// - `Ok(None)` if the deal is not found.
/// - `Err(Box<dyn std::error::Error>)` if there is an error during retrieval.
///
pub async fn deal_map(
    hash: &str,
    block_hash: Option<H256>,
) -> Result<Option<DealInfo>, Box<dyn std::error::Error>>
```


---

# 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://doc.cess.network/developer/cess-sdk/sdk-rust/chain/file_bank/deal_map.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.
