pub trait ChainApi {
    type RuntimeCall: RuntimeEnumTraits;
    type RuntimeEvent: RuntimeEnumTraits;
    type DispatchInfo: RuntimeTraits;
    type DispatchError: RuntimeEnumTraits;
    // Required methods
    fn get_nonce<'life0, 'async_trait>(
        &'life0 self,
        account: AccountId
    ) -> Pin<Box<dyn Future<Output = Result<u32>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn block_events<'life0, 'async_trait>(
        &'life0 self,
        block: Option<BlockHash>
    ) -> Pin<Box<dyn Future<Output = Result<Vec<EventRecord<Self::RuntimeEvent>>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn event_to_extrinsic_result(
        event: &EventRecord<Self::RuntimeEvent>
    ) -> Option<ExtrinsicResult<Self>>;
    fn client(&self) -> &Client;
    // Provided method
    fn events_to_extrinsic_result(
        events: &[EventRecord<Self::RuntimeEvent>]
    ) -> Option<ExtrinsicResult<Self>> { ... }
}