@tabcat/zzzync
    Preparing search index...

    Function fetchIpnsRecord

    • Fetch one peer's IPNS record for ipnsMultihash over the libp2p fetch protocol, then validate it against the routing key before returning it. Answers "does that peer hold a record for this name", where the DHT answers "does anyone".

      Parameters

      • fetch: (
            peer: DialTarget,
            key: string | Uint8Array<ArrayBufferLike>,
            options?: DialProtocolOptions,
        ) => Promise<Uint8Array<ArrayBufferLike> | undefined>
          • (
                peer: DialTarget,
                key: string | Uint8Array<ArrayBufferLike>,
                options?: DialProtocolOptions,
            ): Promise<Uint8Array<ArrayBufferLike> | undefined>
          • Sends a request to fetch the value associated with the given key from the given peer

            Parameters

            • peer: DialTarget
            • key: string | Uint8Array<ArrayBufferLike>
            • Optionaloptions: DialProtocolOptions

            Returns Promise<Uint8Array<ArrayBufferLike> | undefined>

      • peerId: PeerId
      • ipnsMultihash: IpnsMultihash
      • options: AbortOptions = {}

      Returns Promise<IPNSRecord | undefined>