Interface BlockBroker<RetrieveProgressEvents, AnnounceProgressEvents>

interface BlockBroker<RetrieveProgressEvents, AnnounceProgressEvents> {
    announce?(cid, block, options?): Promise<void>;
    createSession?(options?): BlockBroker<RetrieveProgressEvents, AnnounceProgressEvents>;
    retrieve?(cid, options?): Promise<Uint8Array>;
}

Type Parameters

Implemented by

    Methods