Skip to main content

provider

Function provider 

Source
pub(super) async fn provider<N, P>(
    peers: impl IntoIterator<Item = Url>,
    state: &ApiState<N, P>,
    opt: LightClientOptions,
    db_opt: LightClientSqliteOptions,
) -> Result<Provider>
where N: ConnectedNetwork<PubKey>, P: SequencerPersistence,
Expand description

Create a provider for fetching missing data from a list of peer query services.