Skip to main content

init

Function init 

Source
pub async fn init<ReadStateService, Tip>(
    listen_addr: SocketAddr,
    read_state: ReadStateService,
    chain_tip_change: Tip,
    mempool_change: MempoolTxSubscriber,
) -> Result<(JoinHandle<Result<(), BoxError>>, SocketAddr), BoxError>
where ReadStateService: ReadState, Tip: ChainTip + Clone + Send + Sync + 'static,
Expand description

Initializes the indexer RPC server