libp2p
Version:
JavaScript implementation of libp2p, a modular peer to peer network stack
12 lines • 422 B
TypeScript
import type { DialTarget, PeerId } from '@libp2p/interface';
import type { Multiaddr } from '@multiformats/multiaddr';
export interface PeerAddress {
peerId?: PeerId;
multiaddrs: Multiaddr[];
}
/**
* Extracts a PeerId and/or multiaddr from the passed PeerId or Multiaddr or an
* array of Multiaddrs
*/
export declare function getPeerAddress(peer: DialTarget): PeerAddress;
//# sourceMappingURL=get-peer.d.ts.map