helia
    Preparing search index...

    Interface Provider

    A provider can supply the content for a CID

    interface Provider {
        id: CID;
        multiaddrs: Multiaddr[];
        protocols?: string[];
        router: string;
    }
    Index
    id: CID

    The identifier of the remote peer, a CID

    multiaddrs: Multiaddr[]

    The multiaddrs a peer is listening on

    protocols?: string[]

    If present these are the methods that the peer can supply the content via.

    If not present the caller should attempt to dial the remote peer and run the identify protocol to discover how to retrieve the content.

    Example values are (but not limited to):

    • transport-graphsync-filecoinv1
    • transport-ipfs-gateway-http
    • transport-bitswap
    router: string

    The name of the routing implementation that found the provider