referrerpolicy=no-referrer-when-downgrade
pub async fn best_synced_header_id<SourceChain, TargetChain>(
    target_client: &impl Client<TargetChain>,
    at: HashOf<TargetChain>,
) -> Result<Option<HeaderIdOf<SourceChain>>, Error>
where SourceChain: Chain, TargetChain: Chain,
Expand description

Get the id of the best SourceChain header known to the TargetChain at the provided target block using the exposed runtime API method.

The runtime API method should be <TargetChain>FinalityApi::best_finalized().