Enums

Functions

  • Checks if the multiaddr is valid for contacting a p2p peer and resolves DNS components.
  • Extracts the TCP socket address if the multiaddr starts with an /ip4 or /ip6 component, followed by a /tcp component. Otherwise the function returns None.