> For the complete documentation index, see [llms.txt](https://doc.cess.network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.cess.network/developer/cess-sdk/sdk-rust/chain/file_bank/claim_restoral_order.md).

# Claim Restoral Order

Claim the transaction that restored the order. A recovery order can only be claimed by one miner. During the recovery period, other miners will no longer be able to claim the order.

```rust
/// Asynchronously claims the transaction that restored the order.
///
/// This function is used to claim the transaction for restoring a file fragment. A recovery order can only be
/// claimed by one miner. During the recovery period, other miners will no longer be able to claim the order.
///
/// # Arguments
///
/// * `restoral_fragment` - A reference to a string representing the fragment of the file to be restored.
///
/// # Returns
///
/// * `Result<(TxHash, ClaimRestoralOrder), Box<dyn std::error::Error>>` -
///   If successful, returns a tuple containing the transaction hash (`TxHash`) and the claim restoral order
///   details (`ClaimRestoralOrder`). In case of an error, returns an error wrapped in a `Box`.
///
pub async fn claim_restoral_order(
    &self,
    restoral_fragment: &str,
) -> Result<(TxHash, ClaimRestoralOrder), Box<dyn std::error::Error>> 
```
