# Transfer Report

The `transfer_report` is used by miners to report a file to complete the storage transaction. After a file is declared, a certain number of miners need to report it to finally represent the file. A file will be divided into several parts, and each miner is responsible for storing a part of it, and uses `index` to identify it when reporting.

```rust
/// Reports a file to complete the storage transaction. This function is used by miners to report their part of the file storage,
/// which is necessary for the file to be fully represented and declared on the chain.
///
/// # Parameters
///
/// - `index`: The index of the part of the file that the miner is responsible for. This helps to identify which segment of the file is being reported.
/// - `deal_hash`: The unique hash associated with the storage deal for the file.
///
/// # Returns
///
/// Returns a `Result` that, on success, contains a tuple with:
/// - `TxHash`: The transaction hash associated with the reporting of the file storage.
/// - `TransferReport`: A structure representing the result of the file transfer reporting.
///
pub async fn transfer_report(
    &self,
    index: u8,
    deal_hash: &str,
) -> Result<(TxHash, TransferReport), 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/transfer_report.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.
